New

Just launched: Vueblocks, a brand-new search engine for Vue packages! Explore Vueblocks →

worksome/uk-tax-code-validator

A package for validating tax codes in UK
626,962 10
Install
composer require worksome/uk-tax-code-validator
Latest Version:v1.9.0
PHP:^8.4
Laravel:12 · 13
Older releases:8 – 11
License:MIT
Last Updated:Oct 28, 2026
Links: GitHub  ·  Packagist
Maintainer: owenvoke

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

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

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

$response->isValid();

Laravel

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

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

Related Packages

doctrine/dbal

Powerful PHP database abstraction layer (DBAL) with many features for database s...

655,942,320 9,702
laravel/framework

The Laravel Framework.

610,364,751 34,988
laravel/tinker

Powerful REPL for the Laravel framework.

524,145,802 7,444
laravel/serializable-closure

Laravel Serializable Closure provides an easy and secure way to serialize closur...

442,489,569 607
nunomaduro/collision

Cli error handling for console/command-line PHP applications.

412,228,818 4,664

Version History

Version Released PHP Laravel License
v1.9.0 ^8.4 ^12.0 || ^13.0 MIT
v1.8.1 ^8.3 ^11.0 || ^12.0 MIT
v1.8.0 ^8.3 ^11.0 || ^12.0 MIT
v1.7.0 ^8.3 ^11.0 || ^12.0 MIT
v1.6.1 ^8.2 ^11.0 MIT