guilhermewop / apigility-client
使用 apigility 构建的 Restful API 的客户端
v0.3.1
2015-03-23 21:13 UTC
Requires
- php: >=5.4
- ext-json: *
- ext-mbstring: *
- level3/resource: 0.0.1
- zendframework/zendframework: >=2.3,<3.0.0
Requires (Dev)
- fabpot/php-cs-fixer: 0.4.*
- phpunit/phpunit: 4.4.*
This package is not auto-updated.
Last update: 2024-09-28 17:38:26 UTC
README
ApigilityClient 是一个轻量级的库,用于消费使用 Apigility 构建的 Restful API。
要求
- PHP 5.4.x
- Zend Framework >= 2.3
- level3/resource = 0.0.1
安装
使用 composer(推荐)
php composer.phar require guilhermewop/apigility-client:dev-master
配置
将 Zend\Http\Client 选项 放入您的 module.config.php 文件中
'http_client' => array( 'uri' => 'https://:8888', 'options' => array( 'timeout' => 60, 'sslverifypeer' => false, 'keepalive' => true, 'adapter' => 'Zend\Http\Client\Adapter\Socket', ), 'headers' => array( 'Accept' => 'application/hal+json', 'Content-Type' => 'application/json', ), )
目标
等待 psr7 被接受以继续开发