idci / notification-api-client-bundle
Symfony NotificationApiClientBundle
v4.0.1
2019-07-15 10:30 UTC
Requires
- php: >=5.3.2
- da/api-client-bundle: ~1.1
- symfony/framework-bundle: >=2.1
- twig/twig: *
Requires (Dev)
- phpunit/phpunit: ~5.7
- symfony/symfony: 2.8.*
README
Symfony2 通知 API 客户端包
安装
在您的 composer.json
文件中添加依赖
"require": { ... "da/api-client-bundle": "dev-master", "idci/notification-api-client-bundle": "dev-master" },
安装这些新依赖项
$ php composer.phar update
在您的应用程序内核中启用此包
<?php // app/AppKernel.php public function registerBundles() { $bundles = array( // ... new Da\ApiClientBundle\DaApiClientBundle(), new IDCI\Bundle\NotificationApiClientBundle\IDCINotificationApiClientBundle(), ); }
导入包配置
# app/config/config.yml imports: - { resource: @IDCINotificationApiClientBundle/Resources/config/config.yml }
为了检查一切是否正常,您可以执行以下命令
$ php app/console container:debug
您将得到以下结果
... da_api_client.api.notification container Da\ApiClientBundle\Http\Rest\RestApiClientBridge ...
文档
测试
安装包依赖项
$ php composer.phar update
以执行单元测试
$ phpunit --coverage-text