All notable changes to this project will be documented in this file.
The format is based on Keep a Changelog, and this project adheres to Semantic Versioning.
- Remove support of Symfony 4.x, 5.3 & < 6.3
- Add support for Symfony 7
- Remove support of PHP 7.4 & 8.0
- Prevent letters as number
- The default value for the
PhoneNumberType
form type optioncountry_display_emoji_flag
will change fromfalse
totrue
on the next major release - The Doctrine column type length is configurable. Any existing
length
configuration (not taken into account before this release) will now be taken into account.
- Allow to use string with twig filters
- Remove deprecation notice when using serializer
- Remove deprecation notice while using the PhoneNumber validation constraint with Symfony 6.1+ #139
- Add Hungarian translations #129
- Add more french translations #130
- Add new (short) render format for countries in form type #95
- The message
This value is not a valid number.
that was not translated inside the bundle is nowThis value is not a valid phone number.
(and is translated in many languages #128
- Add portuguese translations in #126
- Maintenance: added return types on methods, avoid deprecation trigger, make the bundle future-proof
- Name of the catalan translation file is now accurate #116
- Remove deprecation notice when using annotations
- Add catalan translation
- Deprecate
PhoneNumber::$errorNames
in favour ofPhoneNumber::ERROR_NAMES
.
- Deprecation notice on Symfony >= 6.1
- Fix option format while using the validation constraint as attribute
- Added return types
- Added support for Symfony ^6.0
- Improve README documentation
- Added support PHP8 attribute
- Drop support for PHP < 7.4
- Drop support for Symfony < 4.4
- New twig template for Bootstrap 5
- Add
symfony/intl
as a required dependency
- New twig template for Bootstrap 4
- New twig filter
phone_number_format_out_of_country_calling_number
- Can now define a property path for the region on
PhoneNumber
constraint - New option to specify default region for serialization
- New option to specify the format of the serialization
- Revert "Improve
PhoneNumber
constraint"
- Improve
PhoneNumber
constraint
- Add PHP 8 support
- Improve
PhoneNumberNormalizer
- Fix PhoneNumberValidator
- Improve bundle configuration
- Can now define default region from config
- Use replace keyword instead of conflict in composer.json
- Add support of null values in phone number deserializer
- Add the ability to pass options down to country and number fields
- Refactor
PhoneNumber
constraints & validator to accept more than 1 type. - Clarify LICENSE & add copyright back
- Update README
- Revamped folder
- Remove symfony/templating
- Remove deprecated DIC paremeters & aliases
- Add Czech translations
- Add Turkish translations
- Add Ukrainian translations
- Fix PhoneNumberBundle class
- Add services only if relevant (optional) dependencies are available
- Rename
tel_widget
tophone_number_widget
- Drop support for Symfony < 3.4
- Drop support for PHP < 7.2
- Drop support for JMS Serializer
- Drop support for PHP templates
- Undo minor breaking change by reinstating and deprecating
se
code for Swedish translations. - Validator uses
buildViolation
instead ofaddViolation
for Symfony >= 2.5.
- Symfony 4 support.
- Add
phone_number_of_type
Twig test andisType
test toPhoneNumberHelper
. - Swedish translation improvements. Rename country code
se
->sv
. - Add
country_placeholder
option. - Regard
"0"
as an invalid phone number.
- Deprecate
PhoneNumberFormatHelper
in favour ofPhoneNumberHelper
andPhoneNumberFormatExtension
in favour ofPhoneNumberHelperExtension
.
- Add Symfony Serializer support.
- Confirm libphonenumber 8.0 compatibility.
- Avoid
choices_as_values
deprecation notice in Symfony 3.1.
- Deprecate
phone_number_format
Twig function in favour of a filter.
- Add basic Danish, Swedish and Finnish translations.
- Allow the country choice form widget to not be required.
- Add difference between form type in Symfony 2 and 3 to the documentation.
- Correct the block prefix for PhoneNumberType in Symfony 3.
- Add translations for the validation constraint (BC break).
- Add validation of the phone number type.
- Throw an exception if Doctrine can't convert a database value to/from a
PhoneNumber
. - Add country choice form widget.
- Add
libphonenumber.phone_number_offline_geocoder
service. - Add
libphonenumber.short_number_info
service. - Add
libphonenumber.phone_number_to_carrier_mapper
service. - Add
libphonenumber.phone_number_to_time_zones_mapper
service. - Deprecate
.class
parameters.
- Confirm Symfony 3.0 compatibility.
- Cater for Symfony's deprecation notices.
- Throw a
ConversionException
in the Doctrine type when the value is not aPhoneNumber
.
- Confirm libphonenumber 7.0 compatibility.
- Handle international numbers correctly when using the national format and a default region.
- Throw a
TransformationFailedException
when required in the form data transformer.
- Confirm libphonenumber 6.0 compatibility.
- Changed libphonenumber port to giggsey/libphonenumber-for-php.
- Initial release.