PHPackages                             worksome/uk-tax-code-validator - 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. [Validation &amp; Sanitization](/categories/validation)
4. /
5. worksome/uk-tax-code-validator

ActiveLibrary[Validation &amp; Sanitization](/categories/validation)

worksome/uk-tax-code-validator
==============================

A package for validating tax codes in UK

v1.9.0(4mo ago)10580.0k↑58.5%1MITPHPPHP ^8.4CI passing

Since Jun 11Pushed 4mo ago15 watchersCompare

[ Source](https://github.com/worksome/uk-tax-code-validator)[ Packagist](https://packagist.org/packages/worksome/uk-tax-code-validator)[ RSS](/packages/worksome-uk-tax-code-validator/feed)WikiDiscussions main Synced 3d ago

READMEChangelog (10)Dependencies (18)Versions (16)Used By (0)

UK Tax Code validator
=====================

[](#uk-tax-code-validator)

This package is for validating if a UK tax code is valid.
As there are many rules for when a UK tax code is valid, we needed a way to actually check this. This package contains all the rules for validating if the UK tax code is a valid or not.

Usage
-----

[](#usage)

For validating a tax code, you can simply run the following

```
$engine = new Engine();
$response = $engine->validate($taxCode);

$response->isValid();
```

### Laravel

[](#laravel)

The package does also contain a validation rule to be used with Laravel.

```
Validator::make($data, [
    'tax_code' => ['required', new UkTaxCode(),],
])->fails();
```

###  Health Score

58

—

FairBetter than 98% of packages

Maintenance77

Regular maintenance activity

Popularity43

Moderate usage in the ecosystem

Community18

Small or concentrated contributor base

Maturity77

Established project with proven stability

 Bus Factor1

Top contributor holds 63% 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 ~157 days

Recently: every ~94 days

Total

12

Last Release

124d ago

PHP version history (4 changes)v1.0PHP ^8.0

v1.4.0PHP ^8.2

v1.7.0PHP ^8.3

v1.9.0PHP ^8.4

### Community

Maintainers

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

![](https://avatars.githubusercontent.com/u/5870441?v=4)[Oliver Nybroe](/maintainers/olivernybroe)[@olivernybroe](https://github.com/olivernybroe)

---

Top Contributors

[![owenvoke](https://avatars.githubusercontent.com/u/1899334?v=4)](https://github.com/owenvoke "owenvoke (17 commits)")[![lukeraymonddowning](https://avatars.githubusercontent.com/u/12202279?v=4)](https://github.com/lukeraymonddowning "lukeraymonddowning (6 commits)")[![garciasdos](https://avatars.githubusercontent.com/u/25979809?v=4)](https://github.com/garciasdos "garciasdos (2 commits)")[![laravel-shift](https://avatars.githubusercontent.com/u/15991828?v=4)](https://github.com/laravel-shift "laravel-shift (1 commits)")[![odinns](https://avatars.githubusercontent.com/u/10807424?v=4)](https://github.com/odinns "odinns (1 commits)")

###  Code Quality

TestsPest

Static AnalysisPHPStan

### Embed Badge

![Health badge](/badges/worksome-uk-tax-code-validator/health.svg)

```
[![Health](https://phpackages.com/badges/worksome-uk-tax-code-validator/health.svg)](https://phpackages.com/packages/worksome-uk-tax-code-validator)
```

###  Alternatives

[larastan/larastan

Larastan - Discover bugs in your code without running it. A phpstan/phpstan extension for Laravel

6.5k55.4M8.5k](/packages/larastan-larastan)[illuminate/queue

The Illuminate Queue package.

21332.6M1.6k](/packages/illuminate-queue)[illuminate/routing

The Illuminate Routing package.

1419.2M3.0k](/packages/illuminate-routing)[illuminate/bus

The Illuminate Bus package.

6046.3M543](/packages/illuminate-bus)[illuminate/validation

The Illuminate Validation package.

18838.2M1.7k](/packages/illuminate-validation)[laravel/folio

Page based routing for Laravel.

603583.7k33](/packages/laravel-folio)

PHPackages © 2026

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