mnastalski / baselinker-php
BaseLinker PHP library
Installs: 12 458
Dependents: 0
Suggesters: 0
Security: 0
Stars: 11
Watchers: 5
Forks: 9
Open Issues: 0
Requires
- php: ^8.1
- ext-json: *
- guzzlehttp/guzzle: ^7.5
Requires (Dev)
- friendsofphp/php-cs-fixer: ^3.34
- phpunit/phpunit: ^10.0
README
PHP wrapper for baselinker.com.
Requirements
- PHP >=8.1
Installation
composer require mnastalski/baselinker-php
Usage
Creating an instance
use Baselinker\Baselinker; $baselinker = new Baselinker('[API token]');
Creating a request
$response = $baselinker->orders()->getOrders([ 'date_from' => 1609506671, 'get_unconfirmed_orders' => true, ]); $response->toArray(); /* [ 'status' => 'SUCCESS', 'orders' => [ [ 'order_id' => '123456', ... ], ... ] ] */ $orders = $response->getParameter('orders'); /* [ [ 'order_id' => '123456', ... ], ... ] */