devmachine / guzzle-client-bundle
此包已被废弃,不再维护。未建议替代包。
将devmachine Guzzle客户端集成到Symfony中。
1.0.2
2015-12-23 08:43 UTC
Requires
- php: >=5.4.0
- symfony/framework-bundle: ~2.3 || ~3.0
Requires (Dev)
Suggests
- devmachine/guzzle-markus-client: Guzzle client for Markus API e.g. http://forumcinemas.lv/XML.
- devmachine/guzzle-rottentomatoes-client: Guzzle client for RottenTomatoes API.
This package is not auto-updated.
Last update: 2018-09-04 18:38:22 UTC
README
Devmachine Guzzle客户端集成到Symfony 2。
安装
使用Composer安装此包。将以下内容添加到您的composer.json文件中(注意添加相关客户端库)
{ "require": { "devmachine/guzzle-client-bundle": "1.0.*", "devmachine/guzzle-markus-client": "~1.1", "devmachine/guzzle-rottentomatoes-client": "~1.0" } }
在内核中注册包
<?php // app/AppKernel.php public function registerBundles() { $bundles = array( // ... new Devmachine\Bundle\GuzzleClientBundle\DevmachineGuzzleClientBundle(), ); }
更新配置
devmachine_guzzle_client: # Enable default clients markus: ~ # Setup RottenTomatoes client rotten_tomatoes: %rotten_tomatoes.api_key%
更多信息
# Console commands $ ./app/console | grep devmachine:guzzle-client # Configuration reference $ ./app/console config:dump-reference devmachine_guzzle_client # Available services $ ./app/console container:debug | grep devmachine_guzzle_client