Download the PHP package linker/api-client without Composer
On this page you can find all versions of the php package linker/api-client. It is possible to download/install these versions without Composer. Possible dependencies are resolved automatically.
Table of contents
Download linker/api-client
More information about linker/api-client
Files in linker/api-client
Download linker/api-client
More information about linker/api-client
Files in linker/api-client
Vendor linker
Package api-client
Short Description Linker Cloud Fulfillment Platform API Client library
License MIT
Package api-client
Short Description Linker Cloud Fulfillment Platform API Client library
License MIT
Please rate this library. Is it a good library?
Informations about the package api-client
Linker API Client
PHP Library to access Linker Public API.
Installation
Install
composer require linker/api-client
Create instance
use GuzzleHttp\Client;
use JMS\Serializer\SerializerBuilder;
use Linker\Api\Client\HttpApiClient;
$uri = 'https://api.test.linker.shop/public-api/v1';
$apiKey = 'api123';
$client = new Client();
//JMS Serializer
$serializer = SerializerBuilder::create()->build();
$client = new HttpApiClient($client, $serializer, $uri, $apiKey);
Features
Get order list
$result = $client->getOrders();
Get order
$result = $client->getOrder('orderId');
Create order
$order = new Order();
$order->setClientOrderNumber('abcd');
$order->setOrderDate(new \DateTime());
$order->setCarrier('DHL');
$order->setDeliveryCountry('PL');
$order->setDeliveryPostCode('10-234');
$order->setDeliveryCity('Warsaw');
$order->setDeliveryStreet('Test Street');
$order->setDeliveryEmail('[email protected]');
$order->setDeliveryRecipient('Joh Snow');
$result = $client->createOrder($order);
Get stock list
$result = $client->getStocks();
Testing
Unit tests are in tests/unit you can run it by running following command
phpunit tests/unit
All versions of api-client with dependencies
PHP Build Version
Package Version
Requires
php Version
>=7.1.0
guzzlehttp/guzzle Version ~6.0
myclabs/php-enum Version ~1.2
doctrine/common Version ^2.5
jms/serializer Version *
guzzlehttp/guzzle Version ~6.0
myclabs/php-enum Version ~1.2
doctrine/common Version ^2.5
jms/serializer Version *
The package linker/api-client contains the following files
Loading the files please wait ....