Erply Books API PHP client
composer require koren-software/erplybooks-api-php-client
$token = ''; // Set your API token
$client = new Koren\ErplyBooks\Client($token);
$response = $client->Invoices()->get(); // Koren\ErplyBooks\Response\ItemsResponse
$response = $client->Invoices()->get(1); // Koren\ErplyBooks\Response\ItemResponse
$invoices = $client->Invoices()->get(); // Koren\ErplyBooks\Response\ItemsResponse
// Items response is iterable
foreach ($invoices as $invoice) {
// Do something with $invoice
}
// Responses are jsonable
$json = json_decode($response); // json string of all items or item
// Responses are countable
$count = count($response); // integer (how many items were in response)
composer build
- build by running tests and all code checkscomposer test
- run PHPUnitcomposer format
- format code against standardscomposer phpcs
- run PHP Codesniffer against PSR-2 standardscomposer phpmd
- run PHP Mess Detectorcomposer docs
- generate docs with PHP Documentator (expectsapigen/apigen
installed globally cause of conflicts)