lenius / economic-php-client
PHP-SDK to communicate with E-Conomic
Installs: 101 866
Dependents: 2
Suggesters: 0
Security: 0
Stars: 16
Watchers: 4
Forks: 6
Open Issues: 1
Requires
- php: >=5.4.0
- ext-curl: *
Requires (Dev)
- php-coveralls/php-coveralls: 2.1.*
- phpunit/phpunit: ^5.0 || ^6.0 || ^7.0
- squizlabs/php_codesniffer: 3.*
This package is auto-updated.
Last update: 2024-10-21 11:34:33 UTC
README
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.