NewYour coding agent can read the release notes before it upgrades.Set up the MCP server →
Packagist · #1437 most downloaded on Packagist
Phone number library
Last release 2 years ago
no release in 18 months
Ships fairly regularly
a new release about every 1.1 years
Nearly every release is documented
notes for 11 of 11 stable releases
Nothing withdrawn
no release was ever pulled
10 years old
11 releases · first in 2017
Compatibility with libphonenumber-for-php v9
✨ Compatibility
libphonenumber-for-php v9💥 BC breaks
libphonenumber-for-php v7 and v8The PhoneNumberParseException constructor now takes a libphonenumber\NumberParseException instance
💥 BC breaks
PhoneNumberParseException constructor now takes a libphonenumber\NumberParseException instanceThis change is unlikely to affect you, unless you're throwing PhoneNumberParseException instances yourself.
✨ New features
PhoneNumberParseException now has a $errorType property which contains a PhoneNumberParseErrorType enumPhoneNumber::formatForMobileDialing()PhoneNumber::getCarrierName()PhoneNumber::getTimeZones()One column per quarter.
PhoneNumberType and PhoneNumberFormat are now native PHP enums
💥 BC breaks
8.1PhoneNumberType and PhoneNumberFormat are now native PHP enums💥 BC breaks Minimum PHP version is now 7.4
💥 BC breaks
7.4Static analysis: Psalm & PHPStan -compatible annotations for PhoneNumberType and PhoneNumberFormat constants
✨ Improvements
PhoneNumberType and PhoneNumberFormat constants✨ Improvements
PhoneNumberType and PhoneNumberFormat constantsThe following classes are now final :
✨ New features
PhoneNumber::getDescription()💥 BC breaks
final:
PhoneNumberPhoneNumberFormatPhoneNumberParseExceptionPhoneNumberTypePhoneNumber now implements JsonSerializable
✨ New features
PhoneNumber::isEqualTo()PhoneNumber now implements JsonSerializable💥 BC breaks
json extension (always available as of PHP 8.0)✨ New method: PhoneNumber::getGeographicalAreaCode()
✨ New method: PhoneNumber::getGeographicalAreaCode()
New method: PhoneNumber::isPossibleNumber()
New method: PhoneNumber::isPossibleNumber()
Thanks @xificurk
Minimum PHP version is now 7.1.
Minimum PHP version is now 7.1.
First beta release.
First beta release.
Your coding agent can read these notes before it upgrades. Set up the MCP server →