PrinsFrank Standards Versions Save

A collection of standards as PHP Enums: ISO3166, ISO4217, ISO639...

v3.8.6

2 weeks ago

What's Changed

Full Changelog: https://github.com/PrinsFrank/standards/compare/v3.8.5...v3.8.6

v3.8.5

2 weeks ago

What's Changed

Full Changelog: https://github.com/PrinsFrank/standards/compare/v3.8.4...v3.8.5

v3.8.4

3 weeks ago

This minor release adds missing @throws annotations for InvalidArgumentExceptions

Full Changelog: https://github.com/PrinsFrank/standards/compare/v3.8.3...v3.8.4

v3.8.3

2 months ago

What's Changed

Full Changelog: https://github.com/PrinsFrank/standards/compare/v3.8.2...v3.8.3

v3.8.2

3 months ago

What's Changed

"guardian" TLD domain got unassigned

New language tag variants: "anpezo", "fascia", "fodom", "gherd", "pehoeji", "tailo" and "valbadia".

Other changes

Full Changelog: https://github.com/PrinsFrank/standards/compare/v3.8.1...v3.8.2

v3.8.1

4 months ago

What's Changed

.comcast and .xfinity Top Level Domains are now not assigned;

Fixes

Full Changelog: https://github.com/PrinsFrank/standards/compare/v3.8.0...v3.8.1

v3.8.0

5 months ago

What's Changed

Introduction of Top Level Domains

There are 6 categories of Top Level Domains, and all of them have been introduced as seperate enums:

CountryCodeTLD::from('nl');                      // CountryCodeTLD::nl
CountryCodeTLD::nl;                              // CountryCodeTLD::nl
CountryCodeTLD::from('nl')->value;               // 'nl'
CountryCodeTLD::from('nl')->name;                // 'nl'
CountryCodeTLD::from('nl')->isAssigned();        // true
CountryCodeTLD::from('nl')->getCountryAlpha2();  // CountryAlpha2::Netherlands
CountryCodeTLD::from('nl')->getCountryAlpha3();  // CountryAlpha3::Netherlands
CountryCodeTLD::from('nl')->getCountryNumeric(); // CountryNumeric::Netherlands

GenericRestrictedTLD::from('name');                // GenericRestrictedTLD::name
GenericRestrictedTLD::name;                        // GenericRestrictedTLD::name
GenericRestrictedTLD::from('name')->value;         // 'name'
GenericRestrictedTLD::from('name')->name;          // 'name'
GenericRestrictedTLD::from('name')->isAssigned();  // true

GenericTLD::from('aaa');                // GenericTLD::aaa
GenericTLD::aaa;                        // GenericTLD::aaa
GenericTLD::from('aaa')->value;         // 'aaa'
GenericTLD::from('aaa')->name;          // 'aaa'
GenericTLD::from('aaa')->isAssigned();  // true

InfrastructureTLD::from('arpa');                // InfrastructureTLD::arpa
InfrastructureTLD::arpa;                        // InfrastructureTLD::arpa
InfrastructureTLD::from('arpa')->value;         // 'arpa'
InfrastructureTLD::from('arpa')->name;          // 'arpa'
InfrastructureTLD::from('arpa')->isAssigned();  // true

SponsoredTLD::from('aero');                // SponsoredTLD::aero
SponsoredTLD::arpa;                        // SponsoredTLD::aero
SponsoredTLD::from('aero')->value;         // 'aero'
SponsoredTLD::from('aero')->name;          // 'aero'
SponsoredTLD::from('aero')->isAssigned();  // true

TestTLD::from('テスト');              // TestTLD::tesuto_katakana
TestTLD::tesuto_katakana;            // TestTLD::tesuto_katakana
TestTLD::from('テスト')->value;       // 'テスト'
TestTLD::from('テスト')->name;        // 'tesuto_katakana'
TestTLD::from('テスト')->isAssigned() // false

Retrieving scripts for strings

It is now possible to retrieve the script(s) for a string:

ScriptAlias::allForString('еюeuеюευ');         // [ScriptAlias::Cyrillic, ScriptAlias::Greek, ScriptAlias::Latin]
ScriptAlias::hasMultipleForString('еюeuеюευ'); // true
ScriptAlias::mostCommonInString('еюeuеюευ');   // ScriptAlias::Cyrillic

ScriptCode::allForString('еюeuеюευ');         // [ScriptCode::Cyrillic, ScriptCode::Greek, ScriptCode::Latin]
ScriptCode::hasMultipleForString('еюeuеюευ'); // true
ScriptCode::mostCommonInString('еюeuеюευ');   // ScriptCode::Cyrillic

ScriptNumber::allForString('еюeuеюευ');         // [ScriptNumber::Cyrillic, ScriptAlias::Greek, ScriptAlias::Latin]
ScriptNumber::hasMultipleForString('еюeuеюευ'); // true
ScriptNumber::mostCommonInString('еюeuеюευ');   // ScriptNumber::Cyrillic

LanguageExtensive has received some updates

Fixes and Improvements

New Contributors

Full Changelog: https://github.com/PrinsFrank/standards/compare/v3.7.0...v3.8.0

v3.7.0

6 months ago

What's Changed

Other

Full Changelog: https://github.com/PrinsFrank/standards/compare/v3.6.0...v3.7.0

v3.6.0

6 months ago

What's Changed

Full Changelog: https://github.com/PrinsFrank/standards/compare/v3.5.0...v3.6.0

v3.5.0

6 months ago

What's Changed

Full Changelog: https://github.com/PrinsFrank/standards/compare/v3.4.0...v3.5.0