brick/phonenumber
Phone number library
0.8.0
8.2M downloads/mo
#1507 most downloaded on Packagist
brick/phonenumber
What this package is like to depend on
Last release 1 years ago
20 Mar 2025
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
9 years old
11 releases · first in 2017
0 releases in the last 12 months
see the full history below
Release timeline
11 releases · Apr 2017 to Mar 2025Releases
latest 11-
0.8.020 Mar 2025Release notes
Open source →✨ Compatibility
- Compatibility with
libphonenumber-for-phpv9
💥 BC breaks
- Dropped compatibility with
libphonenumber-for-phpv7andv8
Release notes
Open source →✨ Compatibility
- Compatibility with
libphonenumber-for-phpv9
💥 BC breaks
- Dropped compatibility with
libphonenumber-for-phpv7andv8
- Compatibility with
-
0.7.024 Feb 2025Release notes
Open source →💥 BC breaks
- The
PhoneNumberParseExceptionconstructor now takes alibphonenumber\NumberParseExceptioninstance
This change is unlikely to affect you, unless you're throwing
PhoneNumberParseExceptioninstances yourself.✨ New features
PhoneNumberParseExceptionnow has a$errorTypeproperty which contains aPhoneNumberParseErrorTypeenum- New methods:
PhoneNumber::formatForMobileDialing()PhoneNumber::getCarrierName()PhoneNumber::getTimeZones()
Release notes
Open source →💥 BC breaks
- The
PhoneNumberParseExceptionconstructor now takes alibphonenumber\NumberParseExceptioninstance
This change is unlikely to affect you, unless you're throwing
PhoneNumberParseExceptioninstances yourself.✨ New features
PhoneNumberParseExceptionnow has a$errorTypeproperty which contains aPhoneNumberParseErrorTypeenum- New methods:
PhoneNumber::formatForMobileDialing()PhoneNumber::getCarrierName()PhoneNumber::getTimeZones()
- The
-
0.6.026 Nov 2023Release notes
Open source →💥 BC breaks
- Minimum PHP version is now
8.1 PhoneNumberTypeandPhoneNumberFormatare now native PHP enums
Release notes
Open source →💥 BC breaks
- Minimum PHP version is now
8.1 PhoneNumberTypeandPhoneNumberFormatare now native PHP enums
- Minimum PHP version is now
-
0.5.023 Feb 2023 -
0.4.122 Feb 2023Release notes
Open source →✨ Improvements
- Static analysis: Psalm & PHPStan -compatible annotations for
PhoneNumberTypeandPhoneNumberFormatconstants
Release notes
Open source →✨ Improvements
- Static analysis: Psalm & PHPStan -compatible annotations for
PhoneNumberTypeandPhoneNumberFormatconstants
- Static analysis: Psalm & PHPStan -compatible annotations for
-
0.4.002 Sep 2021Release notes
Open source →✨ New features
PhoneNumber::getDescription()
💥 BC breaks
- The following classes are now
final:PhoneNumberPhoneNumberFormatPhoneNumberParseExceptionPhoneNumberType
Release notes
Open source →✨ New features
PhoneNumber::getDescription()
💥 BC breaks
- The following classes are now
final:PhoneNumberPhoneNumberFormatPhoneNumberParseExceptionPhoneNumberType
-
0.3.005 Aug 2021Release notes
Open source →✨ New features
PhoneNumber::isEqualTo()PhoneNumbernow implementsJsonSerializable
💥 BC breaks
- The library now requires the
jsonextension (always available as of PHP 8.0)
Release notes
Open source →✨ New features
PhoneNumber::isEqualTo()PhoneNumbernow implementsJsonSerializable
💥 BC breaks
- The library now requires the
jsonextension (always available as of PHP 8.0)
-
0.2.206 Feb 2020 -
0.2.112 Nov 2018 -
0.2.004 Oct 2017 -
0.1.005 Apr 2017