NewYour coding agent can read the release notes before it upgrades.Set up the MCP server →
Packagist, #2862 most downloaded on Packagist
A collection of standards as PHP Enums: ISO3166, ISO4217, ISO639...
Latest stable
v3.16.8
Last release 3 months ago
17 Aug 2026
Ships fairly regularly
a new release about every 4 weeks
Nearly every release is documented
notes for 60 of the last 60 stable releases
Nothing withdrawn
no release was ever pulled
4 years old
67 releases · first in 2022
Drag across the ruler to compare, or tap a release to open it.
Add UnitEnum utility class providing similar function as BackedEnum functionality but for UnitEnums instead.
Full Changelog: https://github.com/PrinsFrank/standards/compare/v1.3.0...v1.4.0
Add ::names ::values ::toArray helper to BackedEnum by @lakuapik in https://github.com/PrinsFrank/standards/pull/33
Full Changelog: https://github.com/PrinsFrank/standards/compare/v1.2.0...v1.3.0
Your coding agent can read these notes before it upgrades. Set up the MCP server →
Add country calling codes enum by @PrinsFrank in https://github.com/PrinsFrank/standards/pull/32
Full Changelog: https://github.com/PrinsFrank/standards/compare/v1.1.0...v1.2.0
This brought one major challenge though; Renaming enum names are breaking changes, and releasing a new major version for every country rename is not i…
A new minor version is released as Turkey has now officially been renamed to Türkiye in ISO3166.
This brought one major challenge though; Renaming enum names are breaking changes, and releasing a new major version for every country rename is not ideal and leaves a lot of overhead for package users. Therefor, a new enum is added with the latest name for countries, currencies and languages, that can be used instead of enum keys. Keys will not change to keep this package backwards compatible:
/**
* @source https://www.iso.org/obp/ui/#search/code/
*/
enum ISO3166_1_Name: string
{
case Turkey = 'Türkiye';
// Enum key is unchanged to be backwards compatible
}
Methods are added to get the name corresponding to alpha2, alpha3 and numeric values:
$turkiye = ISO3166_1_Alpha_2::fromValue('TR');
$name = $turkiye->toISO3166_Name()->value(); // Türkiye
All alpha2 and alpha3 values in ISO3166 and ISO4127 are uppercase, and lowercase in ISO639. You may want to get them as lowercase and uppercase respectfully. Methods to get these values are now available:
$netherlands = ISO3166_1_Alpha_2::fromValue('NL');
$netherlandsLowerCase = $netherlands->lowerCaseValue(); // nl
$dutchFlemish = ISO639_1_Alpha_2::fromValue('nl');
$dutchFlemishUpperCase = $dutchFlemish->upperCaseValue(): // NL
Numeric enums sometimes have leading zeros that are required as their complete value. You may want to get those values as integers though;
$euro = ISO4217_Numeric::fromValue('978');
$euro = ISO4217_Numeric::fromInt(978);
$euroAsInt = $euro->valueAsInt(): // 978
Apart from these changes, a lot has been done to improve this package's stability and make this package more mature;
Full Changelog: https://github.com/PrinsFrank/standards/compare/v1.0.0...v1.1.0
With version 1.0.0, this package is now stable! As the standards are now pulled daily from their respective sources, this package will be updated as s
With version 1.0.0, this package is now stable! As the standards are now pulled daily from their respective sources, this package will be updated as soon as their counterpart spec updates! Unfortunately, when pulling from the official sources it became apparent that the 0.0.1 release contained several enum keys that were not consistent with the official spec. make sure to follow the upgrade guide to implement these changes and get up and running with this new release!
Full Changelog: https://github.com/PrinsFrank/standards/compare/v0.0.1...v1.0.0
Full Changelog: https://github.com/PrinsFrank/standards/commits/v0.0.1
Full Changelog: https://github.com/PrinsFrank/standards/commits/v0.0.1
Automatic language-subtag spec update by @github-actions in https://github.com/PrinsFrank/standards/pull/299
Full Changelog: https://github.com/PrinsFrank/standards/compare/v3.11.5...v3.12
One column per quarter.