dev-master
9999999-dev https://github.com/Exeu/ExeuAmazonECSBundleExeu Amazon ECS Bundle
Apache-2.0
The Requires
- php >=5.3.2
- exeu/amazon-ecs-php dev-master
by Jan Eichhorn
bundle amazon soap ecs advertising
Exeu Amazon ECS Bundle
Travis:, (*1)
Comming soon.., (*2)
Jenkins:, (*3)
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(), // ... );
To get this bundle working you have to add the following to your config.yml, (*11)
``` yaml, (*12)
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)
Exeu Amazon ECS Bundle
Apache-2.0
bundle amazon soap ecs advertising