PHPackages                             oihana/php-standards - 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. [PSR &amp; Standards](/categories/psr-standards)
4. /
5. oihana/php-standards

ActiveLibrary[PSR &amp; Standards](/categories/psr-standards)

oihana/php-standards
====================

The Oihana PHP Standards library

1.0.0(10mo ago)06947MPL-2.0PHPPHP &gt;=8.4CI passing

Since Aug 13Pushed 1w agoCompare

[ Source](https://github.com/BcommeBois/oihana-php-standards)[ Packagist](https://packagist.org/packages/oihana/php-standards)[ Docs](https://github.com/BcommeBois/oihana-php-schema)[ RSS](/packages/oihana-php-standards/feed)WikiDiscussions main Synced today

READMEChangelogDependencies (4)Versions (2)Used By (7)

Oihana PHP – Standards
======================

[](#oihana-php--standards)

[![Oihana PHP System](https://raw.githubusercontent.com/BcommeBois/oihana-php-standards/main/assets/images/oihana-php-standards-logo-inline-512x160.png)](https://raw.githubusercontent.com/BcommeBois/oihana-php-standards/main/assets/images/oihana-php-standards-logo-inline-512x160.png)

**Oihana PHP – Standards** is a library of **constants**, **value-objects** and **helpers** built on top of international standards (ISO, IETF, UN/CEFACT, UN M49).

It is designed for **strong typing**, **validation** and **easy lookups** in your PHP 8.4+ applications.

[![Latest Version](https://camo.githubusercontent.com/f726f9986cca262bae718374e846c1be87660fe41866b6e044d939d0968855d0/68747470733a2f2f696d672e736869656c64732e696f2f7061636b61676973742f762f6f6968616e612f7068702d7374616e64617264732e7376673f7374796c653d666c61742d737175617265)](https://packagist.org/packages/oihana/php-standards)[![Total Downloads](https://camo.githubusercontent.com/1a389591d3e096700136c897839a6efe6b75f8e73a4ebf6256ad3361c623d4bc/68747470733a2f2f696d672e736869656c64732e696f2f7061636b61676973742f64742f6f6968616e612f7068702d7374616e64617264732e7376673f7374796c653d666c61742d737175617265)](https://packagist.org/packages/oihana/php-standards)[![License](https://camo.githubusercontent.com/3bf654f65b235f2877a8530159abd118fc42e38af14b1f8b8ea96ddadc760e47/68747470733a2f2f696d672e736869656c64732e696f2f7061636b61676973742f6c2f6f6968616e612f7068702d7374616e64617264732e7376673f7374796c653d666c61742d737175617265)](LICENSE)

---

📚 Documentation
---------------

[](#-documentation)

📖 **[API documentation](https://bcommebois.github.io/oihana-php-standards)** — the full phpDocumentor API reference (classes, methods, constants).

Guides and standards references are available in two languages:

- 🇬🇧 **[English documentation](wiki/en/README.md)**
- 🇫🇷 **[Documentation française](wiki/fr/README.md)**

Quick links: [Getting started](wiki/en/getting-started.md) · [ConstantsTrait](wiki/en/guides/constants-trait.md) · [Value-objects](wiki/en/guides/value-objects.md) · [Helpers convention](wiki/en/guides/helpers.md)

---

📦 Installation
--------------

[](#-installation)

> Requires **[PHP 8.4+](https://php.net/releases/)** (uses property hooks).

```
composer require oihana/php-standards
```

---

🗂 What's inside
---------------

[](#-whats-inside)

NamespaceCoverage[`org\iso`](wiki/en/standards/iso/README.md)ISO 8601 (date/time/duration/interval/recurrence + format), ISO 3166-1, ISO 639-1, ISO 4217, ISO 15924[`org\ietf`](wiki/en/standards/ietf/README.md)BCP 47 / RFC 5646 locale tags[`org\unece\uncefact`](wiki/en/standards/unece/README.md)UN/CEFACT units of measure (Rec. 20) and package types (Rec. 21)[`org\unstats`](wiki/en/standards/unstats/README.md)UN M49 country/area codes[`org\common`](wiki/en/standards/common/README.md)Cross-standard format catalogs (date, number)---

💡 At a glance
-------------

[](#-at-a-glance)

```
use org\iso\ISO4217;
use org\iso\Iso8601DateTime;
use org\ietf\Locale;

// Constants with built-in validation/lookup
ISO4217::EUR;                                  // "EUR"
ISO4217::includes('XYZ');                      // false

// ISO 8601 value-objects with property hooks
$dt = new Iso8601DateTime('2026-05-14T08:15:30+02:00');
$dt->datePart->year;                           // 2026
$dt->timePart->hours;                          // 8

// BCP 47 locales with cross-validation against ISO
new Locale('zh-Hant-TW', strict: true);        // OK
new Locale('zz-ZZ', strict: true);             // throws
```

Many more examples in the [documentation](wiki/en/README.md).

---

📜 License
---------

[](#-license)

**[MPL 2.0](LICENSE)** — Mozilla Public License Version 2.0

👤 Author
--------

[](#-author)

- **Marc ALCARAZ** (aka *eKameleon*)
- 📧
- 🌐

###  Health Score

44

—

FairBetter than 90% of packages

Maintenance78

Regular maintenance activity

Popularity19

Limited adoption so far

Community15

Small or concentrated contributor base

Maturity54

Maturing project, gaining track record

 Bus Factor1

Top contributor holds 100% 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

Unknown

Total

1

Last Release

325d ago

### Community

Maintainers

![](https://www.gravatar.com/avatar/d234506e51778dd3d1d61b6c2af6f294ff963651b4aa509b595d3d2a77b7d89b?d=identicon)[ooop](/maintainers/ooop)

---

Top Contributors

[![ekameleon](https://avatars.githubusercontent.com/u/749032?v=4)](https://github.com/ekameleon "ekameleon (57 commits)")

---

Tags

phpisouncefactunm49

###  Code Quality

TestsPHPUnit

### Embed Badge

![Health badge](/badges/oihana-php-standards/health.svg)

```
[![Health](https://phpackages.com/badges/oihana-php-standards/health.svg)](https://phpackages.com/packages/oihana-php-standards)
```

PHPackages © 2026

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