Skip to content

robertmonka/baselinker-php

 
 

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

59 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

BaseLinker PHP library

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',
                ...
        ],
        ...
    ]
*/

API Documentation

https://api.baselinker.com/

About

PHP library for BaseLinker API

Resources

License

Stars

Watchers

Forks

Packages

No packages published

Languages

  • PHP 100.0%