PHPackages                             ophpl/unlocode - 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. [API Development](/categories/api)
4. /
5. ophpl/unlocode

ActiveLibrary[API Development](/categories/api)

ophpl/unlocode
==============

PHP API for UN/LOCODE - United Nations Code for Trade and Transport Locations

v2.0.1(3y ago)516.8k↓43.8%6[1 PRs](https://github.com/ophpl/unlocode/pulls)MITPHPPHP &gt;=8.0.2

Since Jun 29Pushed 3y ago1 watchersCompare

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

READMEChangelog (3)Dependencies (6)Versions (4)Used By (0)

UN/LOCODE PHP API
=================

[](#unlocode-php-api)

Description
-----------

[](#description)

This package provides an API for UN/LOCODE - United Nations Code for Trade and Transport Locations

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

[](#installation)

### Define Your Dependencies

[](#define-your-dependencies)

We recommend installing this package with [Composer](http://getcomposer.org/). To do this, add `ophpl/unlocode` to your `composer.json` file.

```
{
    "require": {
        "ophpl/unlocode": "dev-master"
    }
}
```

### Install Composer

[](#install-composer)

Run in your project root:

```
curl -s http://getcomposer.org/installer | php

```

### Install Dependencies

[](#install-dependencies)

Run in your project root:

```
php composer.phar install

```

### Build

[](#build)

Code list is available out of the box, but in case you want to update the data, you will need to rebuild the list:

```
php composer.phar install --dev
php console build

```

###  Health Score

38

—

LowBetter than 85% of packages

Maintenance20

Infrequent updates — may be unmaintained

Popularity33

Limited adoption so far

Community12

Small or concentrated contributor base

Maturity70

Established project with proven stability

 Bus Factor1

Top contributor holds 83.3% 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 ~1523 days

Total

3

Last Release

1296d ago

Major Versions

v1.0.0 → v2.0.02022-08-31

PHP version history (2 changes)v1.0.0PHP &gt;=5.3.2

v2.0.0PHP &gt;=8.0.2

### Community

Maintainers

![](https://www.gravatar.com/avatar/16bf1f8ee7457ac09f2cad0264a77952c372b1274c13f56d27618ed3ffdbe60d?d=identicon)[stanislavprokopov](/maintainers/stanislavprokopov)

---

Top Contributors

[![stanislavprokopov](https://avatars.githubusercontent.com/u/713715?v=4)](https://github.com/stanislavprokopov "stanislavprokopov (20 commits)")[![matriphe](https://avatars.githubusercontent.com/u/277262?v=4)](https://github.com/matriphe "matriphe (4 commits)")

---

Tags

locodephpunlocode

###  Code Quality

TestsPHPUnit

Code StylePHP CS Fixer

### Embed Badge

![Health badge](/badges/ophpl-unlocode/health.svg)

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

###  Alternatives

[sylius/sylius

E-Commerce platform for PHP, based on Symfony framework.

8.4k5.6M651](/packages/sylius-sylius)[darkaonline/l5-swagger

OpenApi or Swagger integration to Laravel

2.9k34.0M112](/packages/darkaonline-l5-swagger)[statamic/cms

The Statamic CMS Core Package

4.8k3.2M720](/packages/statamic-cms)[knuckleswtf/scribe

Generate API documentation for humans from your Laravel codebase.✍

2.3k12.2M45](/packages/knuckleswtf-scribe)[currency-cloud/client

A PHP library which implements the complete functionality of v2 of the The Currency Cloud API.

17327.2k](/packages/currency-cloud-client)

PHPackages © 2026

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