Skip to content

guilhermewop/apigility-client

Repository files navigation

Client for Apigility Restful API

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