2017 © Pedro Peláez
 

symfony-bundle amazon-ecs-bundle

Exeu Amazon ECS Bundle

image

exeu/amazon-ecs-bundle

Exeu Amazon ECS Bundle

  • Tuesday, August 14, 2012
  • by Exeu
  • Repository
  • 2 Watchers
  • 4 Stars
  • 9,863 Installations
  • PHP
  • 0 Dependents
  • 0 Suggesters
  • 2 Forks
  • 0 Open issues
  • 1 Versions
  • 1 % Grown

The README.md

Exeu AmazonECS Bundle

Build Status

Travis:, (*1)

Comming soon.., (*2)

Jenkins:, (*3)

Build Status, (*4)

Installation

Symfony 2.0.x

Add the following lines in your deps file:, (*5)

``` ini [AmazonECSPHPLibrary] git=git://github.com/Exeu/Amazon-ECS-PHP-Library.git target=amazon_ecs_php_library [ExeuAmazonECSBundle] git=git://github.com/Exeu/ExeuAmazonECSBundle.git target=bundles/Exeu/AmazonECSBundle, (*6)


Modify the autoload.php: ``` php <?php // app/autoload.php $loader->registerNamespaces(array( // ... 'Exeu' => __DIR__.'/../vendor/bundles', // ... )); require __DIR__.'/../vendor/amazon_ecs_php_library/lib/AmazonECS.class.php';

Now run the vendors script:, (*7)

``` bash $ php bin/vendors install, (*8)


### Symfony 2.1.x Add ExeuAmazonECSBundle in your composer.json: ```js { "require": { "exeu/amazon-ecs-bundle": "dev-master" } }

Now tell composer to download the bundle by running the command:, (*9)

``` bash $ php composer.phar update exeu/amazon-ecs-bundle, (*10)


Dont forget to activate the bundle in your AppKernel: ``` php <?php // in AppKernel::registerBundles() $bundles = array( // ... new Exeu\AmazonECSBundle\ExeuAmazonECSBundle(), // ... );

Configuration

To get this bundle working you have to add the following to your config.yml, (*11)

``` yaml, (*12)

app/config/config.yml

exeu_amazon_ecs: access_key: YOUR_ACCESS_KEY secret_key: YOUR_SECRET_KEY country: COUNTRY CODE associate_tag: YOUR_ASSOCIATE_TAG, (*13)


## Usage ## To work with the Amazon Product Advertising API you need to get the new service for example in your controller: ``` php <?php $amazonEcs = $this->get('exeu_amazon_ecs.pa');

Now you can execute your first searchrequest:, (*14)

``` php <?php, (*15)

// ... $result = $amazonEcs->category('Blended')->search('PHP 5');, (*16)

var_dump($result);, (*17)

```, (*18)

For more detailed information See: Amazon-ECS-PHP-Library - Examples ), (*19)

The Versions

14/08 2012

dev-master

9999999-dev https://github.com/Exeu/ExeuAmazonECSBundle

Exeu Amazon ECS Bundle

  Sources   Download

Apache-2.0

The Requires

 

by Jan Eichhorn

bundle amazon soap ecs advertising