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 1mo ago

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

26

—

LowBetter than 43% of packages

Maintenance20

Infrequent updates — may be unmaintained

Popularity10

Limited adoption so far

Community10

Small or concentrated contributor base

Maturity56

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

1662d ago

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

v1.1.8PHP &gt;=7.1

### Community

Maintainers

![](https://www.gravatar.com/avatar/bcfd4aa02747ef034e4544d56c28b8a36a89014117f4d133591e3b4bc150e0e9?d=identicon)[wellcommerce](/maintainers/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

[twilio/sdk

A PHP wrapper for Twilio's API

1.6k92.9M272](/packages/twilio-sdk)[knplabs/github-api

GitHub API v3 client

2.2k15.8M187](/packages/knplabs-github-api)[facebook/php-business-sdk

PHP SDK for Facebook Business

90121.9M34](/packages/facebook-php-business-sdk)[meilisearch/meilisearch-php

PHP wrapper for the Meilisearch API

73813.7M114](/packages/meilisearch-meilisearch-php)[google/common-protos

Google API Common Protos for PHP

173103.7M50](/packages/google-common-protos)[hubspot/api-client

Hubspot API client

23414.2M16](/packages/hubspot-api-client)

PHPackages © 2026

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