lenius/economic-php-client

PHP-SDK to communicate with E-Conomic

v2.0.1 2018-11-14 19:54 UTC

This package is auto-updated.

Last update: 2020-09-08 21:48:09 UTC


README

Build Status StyleCI Code Coverage Scrutinizer Code Quality Latest Stable Version Total Downloads License

Install

Via Composer

$ composer require lenius/economic-php-client

Documentation

Please see the official e-conomic documentation.

Access all debitors

Call the Customers url /Customers

$appToken = 'demo';
$grant    = 'demo';

$client = new Lenius\Economic\RestClient($appToken, $grant);

$parms = ['pagesize' => 100];

$response = $client->request->get('customers', $parms);

$status = $response->httpStatus();

if ($status == 200) {
    // Successful request
    $data = $response->asArray();
    print_r($data);
}

Testing

$ composer test

Contributing

All PR's are welcome, just throw me one, and i take a look at it :)

License

This code is release under the MIT License, which means you can do pretty much whatever you wanna do with it. Take a look at the LICENSE file for more information.

Author

This packages is originally developed and maintained by Carsten Jonstrup.