An open API service indexing awesome lists of open source software.

https://github.com/serbanghita/generic-api-client

A generic API client with basic HTTP support written in PHP.
https://github.com/serbanghita/generic-api-client

Last synced: 7 months ago
JSON representation

A generic API client with basic HTTP support written in PHP.

Awesome Lists containing this project

README

          

Generic API Client
==================

A generic API client with basic HTTP support written in PHP.

* HTTP transport via `cURL` or `sockets`
* Support for `JSON-RPC` or `REST` API endpoints

```php
$options = array(
'uri' => 'http://www.raboof.com/projects/jayrock/demo.ashx',
'jsonrpc' => '2.0'
);
$client = new \Client\JsonRPC($options);
$response = $client->call_add(1, 2);
var_dump($response);
```

### Changelog

* `1.0.0` - First beta version, supports `JSON-RPC` APIs and `cURL` transfer.