PHPackages                             adampiotrowski/php-inpost-api - 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. [API Development](/categories/api)
4. /
5. adampiotrowski/php-inpost-api

ActiveLibrary[API Development](/categories/api)

adampiotrowski/php-inpost-api
=============================

PHP SDK for Inpost ShipX API

v1.1.9(4y ago)0132MITPHPPHP &gt;=7.1

Since Jun 8Pushed 4y agoCompare

[ Source](https://github.com/adampiotrowski/php-inpost-api)[ Packagist](https://packagist.org/packages/adampiotrowski/php-inpost-api)[ RSS](/packages/adampiotrowski-php-inpost-api/feed)WikiDiscussions master Synced today

READMEChangelogDependencies (6)Versions (11)Used By (0)

Inpost ShipX PHP SDK
====================

[](#inpost-shipx-php-sdk)

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

[](#installation)

```
composer require imper86/php-inpost-api
```

### HTTPlug note

[](#httplug-note)

This lib uses [HTTPlug](https://github.com/php-http/httplug)so it doesn't depend on any http client. In order to use this lib you must have some [PSR-18 http client](https://www.php-fig.org/psr/psr-18)and [PSR-17 http factories](https://www.php-fig.org/psr/psr-17). If you don't know which one you shoud install you can require these:

```
composer require php-http/guzzle6-adapter http-interop/http-factory-guzzle
```

Usage
-----

[](#usage)

Using this library is very simple, fast example should be enough to understand how it works.

```
use Imper86\PhpInpostApi\InpostApi;
use Imper86\PhpInpostApi\Plugin\AcceptLanguagePlugin;

// if you want to use all resources you must ask Inpost for
// access token via their contact form
// https://inpost.pl/formularz-wsparcie
$token = 'aaaa.aaaa';

// create api client
$api = new InpostApi($token);

// this library provides optional Plugin for localizing
// error messages

$api->addPlugin(new AcceptLanguagePlugin('pl_PL'));

// from now you can use these api methods:
$api->addressBooks()->(...);
$api->batches()->(...);
$api->dispatchOrders()->(...);
$api->dispatchPoints()->(...);
$api->mpks()->(...);
$api->organizations()->(...);
$api->points()->(...);
$api->sendingMethods()->(...);
$api->services()->(...);
$api->shipments()->(...);
$api->shipmentTemplates()->(...);
$api->statuses()->(...);
$api->tracking()->(...);

// fast example:
var_dump($api->organizations()->shipments()->get('1234'));
```

If you use IDE with typehinting such as PHPStorm, you'll easily figure it out. If not, please [take a look in Resource directory](src/Resource)

Examples
--------

[](#examples)

If you still wonder how to use this lib, checkout example php scripts:

- [Create shipment and generate label](examples/create_shipment.php)

Contributing
------------

[](#contributing)

Any help will be very appreciated :)

###  Health Score

27

—

LowBetter than 47% of packages

Maintenance20

Infrequent updates — may be unmaintained

Popularity10

Limited adoption so far

Community10

Small or concentrated contributor base

Maturity57

Maturing project, gaining track record

 Bus Factor1

Top contributor holds 84.6% 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 ~56 days

Recently: every ~113 days

Total

10

Last Release

1708d ago

PHP version history (2 changes)v1.1.0PHP ^7.1

v1.1.8PHP &gt;=7.1

### Community

Maintainers

![](https://avatars.githubusercontent.com/u/6772616?v=4)[WellCommerce](/maintainers/wellcommerce)[@WellCommerce](https://github.com/WellCommerce)

---

Top Contributors

[![imper86](https://avatars.githubusercontent.com/u/16724155?v=4)](https://github.com/imper86 "imper86 (22 commits)")[![adampiotrowski](https://avatars.githubusercontent.com/u/6223254?v=4)](https://github.com/adampiotrowski "adampiotrowski (2 commits)")[![grzegorz-pierzakowski](https://avatars.githubusercontent.com/u/8612627?v=4)](https://github.com/grzegorz-pierzakowski "grzegorz-pierzakowski (1 commits)")[![WlochBozena](https://avatars.githubusercontent.com/u/66339844?v=4)](https://github.com/WlochBozena "WlochBozena (1 commits)")

### Embed Badge

![Health badge](/badges/adampiotrowski-php-inpost-api/health.svg)

```
[![Health](https://phpackages.com/badges/adampiotrowski-php-inpost-api/health.svg)](https://phpackages.com/packages/adampiotrowski-php-inpost-api)
```

###  Alternatives

[hubspot/api-client

Hubspot API client

24016.2M20](/packages/hubspot-api-client)[imper86/php-allegro-api

PHP SDK for Allegro.pl REST API

1818.7k](/packages/imper86-php-allegro-api)[pocketmine/bedrock-protocol

An implementation of the Minecraft: Bedrock Edition protocol in PHP

172445.0k14](/packages/pocketmine-bedrock-protocol)[botman/driver-telegram

Telegram driver for BotMan

93459.5k6](/packages/botman-driver-telegram)[imper86/php-inpost-api

PHP SDK for Inpost ShipX API

1443.7k](/packages/imper86-php-inpost-api)

PHPackages © 2026

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