monnez / siny-amazon-product-advertising-api-bundle
该软件包最新版本(dev-develop)没有可用的许可证信息。
dev-develop
2013-10-15 22:23 UTC
Requires
- php: >=5.3.0
- another-vendor/package: 1.*
This package is not auto-updated.
Last update: 2024-09-24 03:08:36 UTC
README
这是一个用于在 Symfony2 中作为 Bundle 使用 Amazon 产品广告 API 的客户端。
安装
1) 在您的 deps 文件中添加以下行
[SinyAmazonProductAdvertisingAPIBundle]
git=git://github.com/s-edy/SinyAmazonProductAdvertisingAPIBundle.git
target=bundles/Siny/Amazon/ProductAdvertisingAPIBundle
2) 运行 vendors 脚本
$ php bin/venders install
3) 将 Siny 命名空间添加到您的自动加载器
<?php // app/autoload.php $loader->registerNamespaces(array( // ... 'Siny' => __DIR__.'/../vendor/bundles', ));
4) 将此 Bundle 添加到您的应用程序内核
<?php // app/AppKernel.php class AppKernel extends Kernel { public function registerBundles() { $bundles = array( // ... new Siny\Amazon\ProductAdvertisingAPIBundle\SinyAmazonProductAdvertisingAPIBundle(), );
如何使用
请参阅 Test/ExampleTest.php
。