PHP wrapper for baselinker.com.
- PHP >=8.1
composer require mnastalski/baselinker-php
use Baselinker\Baselinker;
$baselinker = new Baselinker('[API token]');
$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',
...
],
...
]
*/