Changelog
phil/phoneAll notable changes to phil/phone will be documented in this file.
Updates should follow the Keep a CHANGELOG principles.
NEXT - YYYY-MM-DD
Added
PhoneNumber,PhoneNumberType,PhoneFormat;PhoneException,InvalidPhoneNumberandInvalidMetadata.PhoneNumber::region()andtype()find the region and the type in one pass, kept while the number lives.PhoneNumber::parse()refuses an input longer thanPhoneNumber::MAX_INPUT, 100 characters, before any pattern runs on it, so that its time stays bounded whatever is sent.Metadata\Territory,NumberDesc,NumberFormatandTerritories.Territoriesbuilds the sorted list of countries once a process and finds a country in it by key;NumberDescbuilds its pattern once.- The numbering plans of libphonenumber v9.0.42 in
data/, each file opening withdeclare(strict_types=1);, withNOTICEand the Apache License 2.0. Metadata\MetadataImporterwithbin/import-metadata.php.MetadataImporter::import()reads every territory before anything is written, renames each file over the old one, and removes the dropped plans last, so a failed import leaves every plan whole, the old one or the new one. A file that cannot be written is anInvalidMetadata::unwritable().- The documentation in
doc/, one file per topic, indexed by the README. CONTRIBUTING.md,SECURITY.mdandCODE_OF_CONDUCT.md.