PHPackages                             linker/api-client - PHPackages - PHPackages  [Skip to content](#main-content)[PHPackages](/)[Directory](/)[Categories](/categories)[Trending](/trending)[Leaderboard](/leaderboard)[Changelog](/changelog)[Analyze](/analyze)[Collections](/collections)[Log in](/login)[Sign up](/register)

1. [Directory](/)
2. /
3. [HTTP &amp; Networking](/categories/http)
4. /
5. linker/api-client

ActiveLibrary[HTTP &amp; Networking](/categories/http)

linker/api-client
=================

Linker Cloud Fulfillment Platform API Client library

0.3.3(11mo ago)226.9k↓43.5%8[1 issues](https://github.com/LinkerCloud/linker-api-client/issues)MITPHPPHP &gt;=7.1.0CI failing

Since Jan 10Pushed 11mo ago1 watchersCompare

[ Source](https://github.com/LinkerCloud/linker-api-client)[ Packagist](https://packagist.org/packages/linker/api-client)[ RSS](/packages/linker-api-client/feed)WikiDiscussions master Synced 1mo ago

READMEChangelog (1)Dependencies (5)Versions (11)Used By (0)

Linker API Client

PHP Library to access Linker Public API.

Build Status: [![Build Status](https://camo.githubusercontent.com/8117c390804d4560ee0819a3d06d29a38db3b57eeb45e4576c1e7b0e169d0722/68747470733a2f2f7472617669732d63692e6f72672f4c696e6b6572436c6f75642f6c696e6b65722d6170692d636c69656e742e7376673f6272616e63683d6d6173746572)](https://travis-ci.org/LinkerCloud/linker-api-client)

Installation
------------

[](#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
--------

[](#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('info@linker.shop');
$order->setDeliveryRecipient('Joh Snow');
$result = $client->createOrder($order);

```

Get stock list

```
$result = $client->getStocks();

```

Testing
-------

[](#testing)

Unit tests are in tests/unit you can run it by running following command `phpunit tests/unit`

###  Health Score

38

—

LowBetter than 85% of packages

Maintenance40

Moderate activity, may be stable

Popularity33

Limited adoption so far

Community18

Small or concentrated contributor base

Maturity52

Maturing project, gaining track record

 Bus Factor1

Top contributor holds 64.5% of commits — single point of failure

How is this calculated?**Maintenance (25%)** — Last commit recency, latest release date, and issue-to-star ratio. Uses a 2-year decay window.

**Popularity (30%)** — Total and monthly downloads, GitHub stars, and forks. Logarithmic scaling prevents top-heavy scores.

**Community (15%)** — Contributors, dependents, forks, watchers, and maintainers. Measures real ecosystem engagement.

**Maturity (30%)** — Project age, version count, PHP version support, and release stability.

###  Release Activity

Cadence

Every ~259 days

Recently: every ~530 days

Total

10

Last Release

354d ago

PHP version history (2 changes)0.1.0PHP &gt;=5.6.0

0.2.4PHP &gt;=7.1.0

### Community

Maintainers

![](https://www.gravatar.com/avatar/3e91cbb95566cce2e0fa7ffb06542db9cf49d7b95f83628400747d58e3783d60?d=identicon)[linker](/maintainers/linker)

---

Top Contributors

[![hrba](https://avatars.githubusercontent.com/u/2995275?v=4)](https://github.com/hrba "hrba (20 commits)")[![Greg0](https://avatars.githubusercontent.com/u/1397756?v=4)](https://github.com/Greg0 "Greg0 (3 commits)")[![michalploneczka](https://avatars.githubusercontent.com/u/3415439?v=4)](https://github.com/michalploneczka "michalploneczka (2 commits)")[![piterssson](https://avatars.githubusercontent.com/u/16086241?v=4)](https://github.com/piterssson "piterssson (2 commits)")[![jasufo](https://avatars.githubusercontent.com/u/15183228?v=4)](https://github.com/jasufo "jasufo (1 commits)")[![beardandbowtie](https://avatars.githubusercontent.com/u/8981818?v=4)](https://github.com/beardandbowtie "beardandbowtie (1 commits)")[![acofala](https://avatars.githubusercontent.com/u/9332746?v=4)](https://github.com/acofala "acofala (1 commits)")[![KamilKazm](https://avatars.githubusercontent.com/u/48932338?v=4)](https://github.com/KamilKazm "KamilKazm (1 commits)")

---

Tags

httpapiclientLinker Cloud Fulfillment Platform

###  Code Quality

TestsPHPUnit

### Embed Badge

![Health badge](/badges/linker-api-client/health.svg)

```
[![Health](https://phpackages.com/badges/linker-api-client/health.svg)](https://phpackages.com/packages/linker-api-client)
```

###  Alternatives

[printu/labelary

PHP API for Labelary.com

34616.9k](/packages/printu-labelary)[printu/customerio

PHP API for Customer.io

241.1M2](/packages/printu-customerio)[e-moe/guzzle6-bundle

Integrates Guzzle 6 into your Symfony application

11259.2k](/packages/e-moe-guzzle6-bundle)[meteocontrol/vcom-api-client

HTTP Client for meteocontrol's VCOM API - The VCOM API enables you to directly access your data on the meteocontrol platform.

175.7k1](/packages/meteocontrol-vcom-api-client)[rap2hpoutre/jacky

Opinionated REST JSON HTTP API client for laravel

174.4k](/packages/rap2hpoutre-jacky)[laragear/api-manager

Manage multiple REST servers to make requests in few lines and fluently.

161.8k](/packages/laragear-api-manager)

PHPackages © 2026

[Directory](/)[Categories](/categories)[Trending](/trending)[Changelog](/changelog)[Analyze](/analyze)
