emerap / ra_client
Client API for ra framework
dev-master
2016-08-25 08:49 UTC
Requires
- php: >=5.3.0
This package is not auto-updated.
Last update: 2025-01-16 05:32:35 UTC
README
Install
- composer require emerap/ra_client && composer install
- Create class extends from \Emerap\RaClient\Client.
Basic usage
Basic implementation
<?php
namespace [YOUR_PACKAGE];
use Emerap\RaClient\Client
/**
* Class CustomClient.
*
* @package [YOUR_PACKAGE]
*/
class CustomClient extends Client {
/**
* {@inheridoc}
*/
public static function getSources() {
// array of sources data.
}
}
Usage
// Client tag (key in getSources).
$tag = 'ra_docs';
// CustomClient instance.
$client = new \YOUR_PACKAGE\CustomClient('ra_docs');
```s