guilhermewop/apigility-client

API Client for Restful APIs built with apigility

v0.3.1 2015-03-23 21:13 UTC

This package is not auto-updated.

Last update: 2024-12-21 18:52:27 UTC


README

Build Status Scrutinizer Code Quality Code Coverage Software License

ApigilityClient is a lightweight library to consume Restful APIs built with Apigility.

Requirements

  • PHP 5.4.x
  • Zend Framework >= 2.3
  • level3/resource = 0.0.1

Installation

Using composer (recommended)

php composer.phar require guilhermewop/apigility-client:dev-master

Package information on Packagist

Configuration

Put Zend\Http\Client options into your module.config.php file:

'http_client' => array(
    'uri' => 'https://localhost: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',
    ),
)

Goals

Waiting psr7 be accepted to continue with the development