angelxmoreno/doba-api

A PHP library for interacting with the Doba API

v1.2.1 2018-09-14 06:30 UTC

This package is auto-updated.

Last update: 2024-12-16 04:14:21 UTC


README

A PHP library for interacting with the Doba API

Build Status Codacy Badge Maintainability Test Coverage License Minimum PHP Version

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.