Skip to content

Lenius/economic-php-client

Repository files navigation

E-conomic PHP REST CLIENT

PHP Tests 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

Run the tests with:

composer psalm
composer stan
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.