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.
- Host: GitHub
- URL: https://github.com/serbanghita/generic-api-client
- Owner: serbanghita
- License: other
- Created: 2014-10-30T15:39:47.000Z (almost 11 years ago)
- Default Branch: master
- Last Pushed: 2014-11-20T06:33:24.000Z (almost 11 years ago)
- Last Synced: 2025-01-24T09:42:37.559Z (9 months ago)
- Language: PHP
- Size: 191 KB
- Stars: 1
- Watchers: 3
- Forks: 1
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
- License: LICENSE.txt
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.