mnastalski / baselinker-php
BaseLinker PHP library
Installs: 11 925
Dependents: 0
Suggesters: 0
Security: 0
Stars: 12
Watchers: 5
Forks: 9
Open Issues: 1
Requires
- php: >=7.1.3
- ext-json: *
- guzzlehttp/guzzle: ^6.4|^7.0
Requires (Dev)
- phpunit/phpunit: ^7.0|^8.0
README
PHP wrapper for baselinker.com.
Requirements
- PHP >=7.1.3
Installation
composer require mnastalski/baselinker-php
Usage
Creating an instance
use Baselinker\Baselinker; $baselinker = new Baselinker([ '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', ... ], ... ] */