angelxmoreno / doba-api
A PHP library for interacting with the Doba API
v1.2.1
2018-09-14 06:30 UTC
Requires
- php: ^7.2
- ext-json: ^1.2
- ext-soap: ^7.2
- cakephp/utility: ^3.6
- psr/simple-cache: ^1.0
Requires (Dev)
- cakephp/cakephp-codesniffer: ^3.0
- codacy/coverage: ^1.4
- codeclimate/php-test-reporter: ^0.4.4
- kahlan/kahlan: ^4.1
- php-di/php-di: ^5.0 | ^6.0
- phpmd/phpmd: ^2.6
- squizlabs/php_codesniffer: ^3.3
README
A PHP library for interacting with the Doba API
Features
- Make calls to the Doba API
- PSR-16 cache for faster responses
- Uses SoapClient for better type conversion of data
Examples
$username = 'doba_api_username'; $password = 'doba_api_password'; $retailer_id = 'retailer_id'; $api = \Axm\DobaApi\Factory::buildApi($username, $password, $retailer_id); $suppliers = $api->getSuppliers(['supplier_ids' => [123,456]]); $orders = $api->getOrders([ 'limit' => 4 ]);
Requirements
- PHP >=7.1
- SoapClient enabled in PHP
Installation
You can install this library using composer.
The recommended way to install as a composer package:
composer require angelxmoreno/doba-api
Setup
Reporting Issues
If you have a problem with this library please open an issue on GitHub.
License
This code is offered under an MIT license.