PHPackages                             accu/postmen-sdk - 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. accu/postmen-sdk

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

accu/postmen-sdk
================

SDK for Postmen.com Parcel Shipping API.

3.0.0(4y ago)16.3k1MITPHPPHP ^7.2|^8.0

Since Dec 30Pushed 4y ago1 watchersCompare

[ Source](https://github.com/acculimited/postmen-sdk)[ Packagist](https://packagist.org/packages/accu/postmen-sdk)[ RSS](/packages/accu-postmen-sdk/feed)WikiDiscussions master Synced today

READMEChangelog (7)Dependencies (5)Versions (10)Used By (0)

[![](https://camo.githubusercontent.com/ee4551f9410c9247569d0ece1078883304c9da44288aab4fb8735928f645fdbc/68747470733a2f2f612e73746f7279626c6f6b2e636f6d2f662f38303839392f782f353732616466663631392f706f73746d656e5f7777775f6c6f676f2e737667)](https://camo.githubusercontent.com/ee4551f9410c9247569d0ece1078883304c9da44288aab4fb8735928f645fdbc/68747470733a2f2f612e73746f7279626c6f6b2e636f6d2f662f38303839392f782f353732616466663631392f706f73746d656e5f7777775f6c6f676f2e737667)

[![Build Status](https://github.com/acculimited/postmen-sdk/workflows/CI/badge.svg)](https://github.com/acculimited/postmen-sdk/actions?query=workflow%3A%22CI%22)[![Total Downloads](https://camo.githubusercontent.com/a52d08cdb709a49a481ee767b44071f5135f391787b0c24bf87bcd043fcfd5d5/68747470733a2f2f696d672e736869656c64732e696f2f7061636b61676973742f64742f616363752f706f73746d656e2d73646b)](https://packagist.org/packages/accu/postmen-sdk)[![Latest Stable Version](https://camo.githubusercontent.com/4f1ce2b158e84bcaa0b57079668e627448b49dbb2397cd769fa9d3a9a325b4bc/68747470733a2f2f696d672e736869656c64732e696f2f7061636b61676973742f762f616363752f706f73746d656e2d73646b)](https://packagist.org/packages/accu/postmen-sdk)[![License](https://camo.githubusercontent.com/04d290664e359ac1bf8a59b0aea3235a18073728cca065f0df9b7f5a9199f2d6/68747470733a2f2f696d672e736869656c64732e696f2f7061636b61676973742f6c2f616363752f706f73746d656e2d73646b)](https://packagist.org/packages/accu/postmen-sdk)

Accu Postmen SDK
================

[](#accu-postmen-sdk)

A composable package that provides a modern client to use with the Postmen.com API.

```
$client = new \Accu\Postmen\Client(
    (new \Accu\Postmen\Configuration('your-api-key', $testMode = true))
        ->setMaxRetries(1)
);

/** @var \Accu\Postmen\Entities\Label $label */
$label = $client->send((new \Accu\Postmen\Requests\Labels\Create())
    ->addReference('Dispatch #1')
    ->setServiceType('dpd-uk_parcel_1d')
    ->setShipperAccount((new \Accu\Postmen\Entities\ShipperAccount())
        ->setId('your-shipper-account-id')
    )
    ->setShipment((new \Accu\Postmen\Entities\Shipment())
        ->setShipTo((new \Accu\Postmen\Entities\Address())
            ->setContactName('Goods In')
            ->setCompanyName('Accu Limited')
            ->setStreet1('Haggwood Stone Quarry')
            ->setStreet2('Woodhead Road')
            ->setCity('Holmfirth')
            ->setPostalCode('HD9 6PW')
            ->setCountry('GBR')
            ->setEmail('goods-in@accu.co.uk')
            ->setPhone('0123456789')
        )
        ->setShipFrom((new \Accu\Postmen\Entities\Address())
            ->setContactName('Goods Out')
            ->setCompanyName('Accu Limited')
            ->setStreet1('Haggwood Stone Quarry')
            ->setStreet2('Woodhead Road')
            ->setCity('Holmfirth')
            ->setPostalCode('HD9 6PW')
            ->setCountry('GBR')
            ->setEmail('goods-out@accu.co.uk')
            ->setPhone('0123456789')
        )
        ->setDeliveryInstructions('Please ring the bell')
        ->addParcel((new \Accu\Postmen\Entities\Parcel())
            ->setBoxType('custom')
            ->setDimension((new \Accu\Postmen\Entities\Dimension())
                ->setUnit('cm')
                ->setHeight(30)
                ->setWidth(50)
                ->setDepth(30)
            )
            ->addItem((new \Accu\Postmen\Entities\Item())
                ->setSku('APC000001')
                ->setItemId('tiny-screw-1')
                ->setDescription('A small screw')
                ->setWeight((new \Accu\Postmen\Entities\Weight())
                    ->setUnit('kg')
                    ->setValue(0.001)
                )
                ->setQuantity(1000)
                ->setPrice((new \Accu\Postmen\Entities\Money())
                    ->setCurrency('GBP')
                    ->setAmount(0.005)
                )
                ->setOriginCountry('GBR')
                ->setHsCode('7318141090')
            )
            ->setWeight((new \Accu\Postmen\Entities\Weight())
                ->setUnit('kg')
                // Sum of items plus packaging.
                ->setValue(1.2)
            )
        )
    )
);

echo $label->getId(); // the-label-identifier
echo $label->getTrackingNumbers(); // ['tracking-1..', 'tracking-2..', ...]
echo $label->getFiles()->getLabel()->getUrl(); // The shipping labels to be printed
```

Help and docs
-------------

[](#help-and-docs)

Please use GitHub issues to discuss bugs and new features.

Installing the Postmen SDK
--------------------------

[](#installing-the-postmen-sdk)

The recommended way to install the SDK is through [Composer](https://getcomposer.org/).

```
composer require accu/postmen-sdk
```

Brought to you by:

[![](https://camo.githubusercontent.com/f0d3d2eb15717f6a2f3b1d23746504ca7993f1cac38c1d9fc086843ca190a7a5/68747470733a2f2f692e616363752e636f2e756b2f6c6f676f2f616363752e737667)](https://www.accu.co.uk)

Accuracy. Delivered.

###  Health Score

32

—

LowBetter than 72% of packages

Maintenance20

Infrequent updates — may be unmaintained

Popularity20

Limited adoption so far

Community10

Small or concentrated contributor base

Maturity64

Established project with proven stability

 Bus Factor1

Top contributor holds 94.7% 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 ~61 days

Recently: every ~90 days

Total

7

Last Release

1586d ago

Major Versions

1.2.1 → 2.0.02021-03-27

2.0.1 → 3.0.02022-01-04

PHP version history (2 changes)1.0.0PHP ^7.1

3.0.0PHP ^7.2|^8.0

### Community

Maintainers

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

---

Top Contributors

[![accu-clw](https://avatars.githubusercontent.com/u/57769822?v=4)](https://github.com/accu-clw "accu-clw (125 commits)")[![Zici](https://avatars.githubusercontent.com/u/6863828?v=4)](https://github.com/Zici "Zici (7 commits)")

---

Tags

aftershippostmensdk

###  Code Quality

TestsPHPUnit

Code StylePHP\_CodeSniffer

### Embed Badge

![Health badge](/badges/accu-postmen-sdk/health.svg)

```
[![Health](https://phpackages.com/badges/accu-postmen-sdk/health.svg)](https://phpackages.com/packages/accu-postmen-sdk)
```

###  Alternatives

[spatie/crawler

Crawl all internal links found on a website

2.8k16.3M52](/packages/spatie-crawler)[omniphx/forrest

A Laravel library for Salesforce

2724.4M8](/packages/omniphx-forrest)[akamai-open/edgegrid-client

Implements the Akamai {OPEN} EdgeGrid Authentication specified by https://developer.akamai.com/introduction/Client\_Auth.html

482.5M6](/packages/akamai-open-edgegrid-client)[muhammadhuzaifa/telescope-guzzle-watcher

Telescope Guzzle Watcher provide a custom watcher for intercepting http requests made via guzzlehttp/guzzle php library. The package uses the on\_stats request option for extracting the request/response data. The watcher intercept and log the request into the Laravel Telescope HTTP Client Watcher.

98239.8k1](/packages/muhammadhuzaifa-telescope-guzzle-watcher)[onesignal/onesignal-php-api

A powerful way to send personalized messages at scale and build effective customer engagement strategies. Learn more at onesignal.com

34170.2k2](/packages/onesignal-onesignal-php-api)[ory/hydra-client-php

Documentation for all of Ory Hydra's APIs.

1710.8k](/packages/ory-hydra-client-php)

PHPackages © 2026

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