PHPackages                             parceltrap/driver-royal-mail - 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. [Utility &amp; Helpers](/categories/utility)
4. /
5. parceltrap/driver-royal-mail

ActiveLibrary[Utility &amp; Helpers](/categories/utility)

parceltrap/driver-royal-mail
============================

A Royal Mail driver for ParcelTrap

v1.2.0(1mo ago)041MITPHPPHP ^8.4CI passing

Since Oct 5Pushed 1mo ago1 watchersCompare

[ Source](https://github.com/parceltrap/driver-royal-mail)[ Packagist](https://packagist.org/packages/parceltrap/driver-royal-mail)[ Fund](https://ecologi.com/owenvoke?gift-trees)[ GitHub Sponsors](https://github.com/owenvoke)[ RSS](/packages/parceltrap-driver-royal-mail/feed)WikiDiscussions main Synced 4w ago

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

ParcelTrap Royal Mail Driver
============================

[](#parceltrap-royal-mail-driver)

[![Latest Version on Packagist](https://camo.githubusercontent.com/e2f2934b29c6d8378093e680b618d5b6ea7c078a183dfc8a4063fd64455f916c/68747470733a2f2f696d672e736869656c64732e696f2f7061636b61676973742f762f70617263656c747261702f6472697665722d726f79616c2d6d61696c2e7376673f7374796c653d666c61742d737175617265)](https://packagist.org/packages/parceltrap/driver-royal-mail)[![Software License](https://camo.githubusercontent.com/55c0218c8f8009f06ad4ddae837ddd05301481fcf0dff8e0ed9dadda8780713e/68747470733a2f2f696d672e736869656c64732e696f2f62616467652f6c6963656e73652d4d49542d627269676874677265656e2e7376673f7374796c653d666c61742d737175617265)](LICENSE.md)[![Build Status](https://camo.githubusercontent.com/36e967d21bacf8570ec4ecb8831b7dda52ea7070467496467623e07ff2a86bcb/68747470733a2f2f696d672e736869656c64732e696f2f6769746875622f616374696f6e732f776f726b666c6f772f7374617475732f70617263656c747261702f6472697665722d726f79616c2d6d61696c2f74657374732e796d6c3f6272616e63683d6d61696e267374796c653d666c61742d737175617265266c6162656c3d5465737473)](https://github.com/parceltrap/driver-royal-mail/actions)[![Static Analysis](https://camo.githubusercontent.com/787ff8aac331935fb77976fe9f5c4269f94d89332862b34ce5df5cb506af00ca/68747470733a2f2f696d672e736869656c64732e696f2f6769746875622f616374696f6e732f776f726b666c6f772f7374617475732f70617263656c747261702f6472697665722d726f79616c2d6d61696c2f7374617469632e796d6c3f6272616e63683d6d61696e267374796c653d666c61742d737175617265266c6162656c3d537461746963253230416e616c79736973)](https://github.com/parceltrap/driver-royal-mail/actions/workflows/static.yml)[![Total Downloads](https://camo.githubusercontent.com/89e95a4159da8d1ed4a5098ed5d16179df66ad30f2cbf88f532d4dd2afbb289d/68747470733a2f2f696d672e736869656c64732e696f2f7061636b61676973742f64742f70617263656c747261702f6472697665722d726f79616c2d6d61696c2e7376673f7374796c653d666c61742d737175617265)](https://packagist.org/packages/parceltrap/driver-royal-mail)[![Buy us a tree](https://camo.githubusercontent.com/910e097fe46a40add8f3484705ecbc26dc047df84b2fef027405f47408023d76/68747470733a2f2f696d672e736869656c64732e696f2f62616467652f54726565776172652d2546302539462538432542332d6c69676874677265656e3f7374796c653d666c61742d737175617265)](https://ecologi.com/owenvoke?gift-trees)

A Royal Mail driver for ParcelTrap

Install
-------

[](#install)

Via Composer

```
composer require parceltrap/driver-royal-mail
```

Usage
-----

[](#usage)

Add the following to the `drivers` section of your `config/parceltrap.php` file:

```
'royal_mail' => [
    'client_id' => env('PARCELTRAP_ROYAL_MAIL_CLIENT_ID'),
    'client_secret' => env('PARCELTRAP_ROYAL_MAIL_CLIENT_SECRET'),
],

```

```
use ParcelTrap\ParcelTrap;

/** @var ParcelTrap $parcelTrap */
$parcelTrap->driver('royal_mail');
```

Configure the relevant environment variables in your `.env` file.

Change log
----------

[](#change-log)

Please see [GitHub Releases](https://github.com/parceltrap/driver-royal-mail/releases) for more information on what has changed recently.

Testing
-------

[](#testing)

```
composer test
```

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

[](#contributing)

Please see [CONTRIBUTING](.github/CONTRIBUTING.md) for details.

Security
--------

[](#security)

If you discover any security related issues, please email  instead of using the issue tracker.

Credits
-------

[](#credits)

- [Owen Voke](https://github.com/owenvoke)
- [All Contributors](../../contributors)

License
-------

[](#license)

The MIT License (MIT). Please see [License File](LICENSE.md) for more information.

Treeware
--------

[](#treeware)

You're free to use this package, but if it makes it to your production environment you are required to buy the world a tree.

It’s now common knowledge that one of the best tools to tackle the climate crisis and keep our temperatures from rising above 1.5C is to plant trees. If you support this package and contribute to the Treeware forest you’ll be creating employment for local families and restoring wildlife habitats.

You can buy trees [here](https://ecologi.com/owenvoke?gift-trees).

Read more about Treeware at [treeware.earth](https://treeware.earth).

###  Health Score

47

—

FairBetter than 93% of packages

Maintenance98

Actively maintained with recent releases

Popularity4

Limited adoption so far

Community8

Small or concentrated contributor base

Maturity67

Established project with proven stability

 Bus Factor1

Top contributor holds 100% 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 ~424 days

Total

4

Last Release

39d ago

PHP version history (3 changes)v1.0.0PHP ^8.1

v1.1.0PHP ^8.2

v1.2.0PHP ^8.4

### Community

Maintainers

![](https://avatars.githubusercontent.com/u/1899334?v=4)[Owen Voke](/maintainers/owenvoke)[@owenvoke](https://github.com/owenvoke)

---

Top Contributors

[![owenvoke](https://avatars.githubusercontent.com/u/1899334?v=4)](https://github.com/owenvoke "owenvoke (20 commits)")

---

Tags

hacktoberfestparceltrapparceltrap-driverparceltrap-driver

###  Code Quality

TestsPest

Static AnalysisPHPStan

Code StyleLaravel Pint

Type Coverage Yes

### Embed Badge

![Health badge](/badges/parceltrap-driver-royal-mail/health.svg)

```
[![Health](https://phpackages.com/badges/parceltrap-driver-royal-mail/health.svg)](https://phpackages.com/packages/parceltrap-driver-royal-mail)
```

###  Alternatives

[stefanbauer/laravel-favicon-extractor

A favicon extractor for Laravel

10125.3k](/packages/stefanbauer-laravel-favicon-extractor)[arubacao/aws-ip-range-middleware

Laravel Middleware for Amazon Web Services (AWS) IP Address Range

172.3k](/packages/arubacao-aws-ip-range-middleware)

PHPackages © 2026

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