PHPackages                             citco/postcode - 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. citco/postcode

ActiveLibrary

citco/postcode
==============

CIT Postcode class is a UK postcode validator.

2231PHP

Since Feb 16Pushed 4y ago5 watchersCompare

[ Source](https://github.com/citco/postcode)[ Packagist](https://packagist.org/packages/citco/postcode)[ RSS](/packages/citco-postcode/feed)WikiDiscussions master Synced 1mo ago

READMEChangelogDependenciesVersions (1)Used By (0)

Citco Postcode : Simple UK postcode validator
=============================================

[](#citco-postcode--simple-uk-postcode-validator)

Citco Postcode is developed by [CIT Ltd.](http://cit.limited).

About
-----

[](#about)

Simple UK postcode validation and parsing.

Installation
------------

[](#installation)

### Composer

[](#composer)

From the Command Line:

```
composer require citco/postcode:dev-master

```

In your `composer.json`:

```
{
    "require": {
        "citco/postcode": "dev-master"
    }
}
```

Basic Usage
-----------

[](#basic-usage)

```
$parser = new Postcode('Sl1 EY1');

$parser->isValid();//validates postcode

$refactored_postcode = $parser->refactor();// sl1ey2 ===> SL1 EY2
```

License
-------

[](#license)

Citco Postcode is open source software licensed under [the MIT license](http://opensource.org/licenses/MIT)

Copyright [Creative Investments Technologies](http://creativeinvestments.co.uk)

Permission is hereby granted, free of charge, to any person obtaining a copy of this software and associated documentation files (the "Software"), to deal in the Software without restriction, including without limitation the rights to use, copy, modify, merge, publish, distribute, sublicense, and/or sell copies of the Software, and to permit persons to whom the Software is furnished to do so, subject to the following conditions:

The above copyright notice and this permission notice shall be included in all copies or substantial portions of the Software.

THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE.

###  Health Score

19

—

LowBetter than 10% of packages

Maintenance20

Infrequent updates — may be unmaintained

Popularity14

Limited adoption so far

Community11

Small or concentrated contributor base

Maturity27

Early-stage or recently created project

 Bus Factor1

Top contributor holds 60% 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://www.gravatar.com/avatar/3e40967143f1416bcd47a9c7c10d2e38652e8031c4d5de75fe165aad208fa096?d=identicon)[kaizotech](/maintainers/kaizotech)

---

Top Contributors

[![ammont](https://avatars.githubusercontent.com/u/2066482?v=4)](https://github.com/ammont "ammont (3 commits)")[![misagh](https://avatars.githubusercontent.com/u/11710339?v=4)](https://github.com/misagh "misagh (2 commits)")

### Embed Badge

![Health badge](/badges/citco-postcode/health.svg)

```
[![Health](https://phpackages.com/badges/citco-postcode/health.svg)](https://phpackages.com/packages/citco-postcode)
```

PHPackages © 2026

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