PHPackages                             fhindsthejewellers/gb-customs-form - 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. [PDF &amp; Document Generation](/categories/documents)
4. /
5. fhindsthejewellers/gb-customs-form

ActiveProject[PDF &amp; Document Generation](/categories/documents)

fhindsthejewellers/gb-customs-form
==================================

Takes Product and Shipment information and passes back an FPDF object containing CN22 or CN23 GB customs forms

115PHPCI failing

Since Jan 14Pushed 5y agoCompare

[ Source](https://github.com/fhindsthejewellers/gb-customs-form)[ Packagist](https://packagist.org/packages/fhindsthejewellers/gb-customs-form)[ RSS](/packages/fhindsthejewellers-gb-customs-form/feed)WikiDiscussions master Synced 5d ago

READMEChangelogDependenciesVersions (1)Used By (0)

GB Customs Forms
================

[](#gb-customs-forms)

This library is under development and the interface is not stable!

This library produces FPDF objects containing CN22 or CN23 forms.

Have a look in the examples folder.

The basic syntax is as follows:

```
$form = new \fhindsthejewellers\GBCustomsForm\CustomsManager($products,$details);

$type = $form->GetType();

$pdf = $form->GetPDF();

```

Where $products is an array of products and $details is an array of details about the parcel

The CustomsManager class also provides a couple of static methods:

- IsCn22FormPossible(array) : bool - Tells you if these products will allow you to make the simplar CN22 form. CN23 needs more information passed in the $details array.
- ValidateProductArray(array) : array - This will pass back your product array and tell you if the names are too long

###  Health Score

18

—

LowBetter than 8% of packages

Maintenance20

Infrequent updates — may be unmaintained

Popularity7

Limited adoption so far

Community8

Small or concentrated contributor base

Maturity31

Early-stage or recently created project

 Bus Factor1

Top contributor holds 87.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.

### Community

Maintainers

![](https://avatars.githubusercontent.com/u/41668232?v=4)[F Hinds the Jewellers](/maintainers/fhindsthejewellers)[@fhindsthejewellers](https://github.com/fhindsthejewellers)

---

Top Contributors

[![greasypablo](https://avatars.githubusercontent.com/u/3962401?v=4)](https://github.com/greasypablo "greasypablo (7 commits)")[![fhindsthejewellers](https://avatars.githubusercontent.com/u/41668232?v=4)](https://github.com/fhindsthejewellers "fhindsthejewellers (1 commits)")

### Embed Badge

![Health badge](/badges/fhindsthejewellers-gb-customs-form/health.svg)

```
[![Health](https://phpackages.com/badges/fhindsthejewellers-gb-customs-form/health.svg)](https://phpackages.com/packages/fhindsthejewellers-gb-customs-form)
```

###  Alternatives

[tarfin-labs/easy-pdf

Makes pdf processing easy.

1719.9k](/packages/tarfin-labs-easy-pdf)

PHPackages © 2026

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