Improved formatting of telephone numbers according to the RFC3966 standard #224
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
Hello,
I propose a significant improvement in the management of telephone numbers within your library. This enhancement aims to standardize phone number formatting based on the RFC3966 standard for phone number URIs. This will enable more consistent and standardized management of phone numbers, regardless of their original format.
Motivation :
The diversity of telephone number formats and the need to handle them in a uniform manner that complies with international standards underlines the importance of this update. Using the library brick/phonenumber, which is a wrapper around [giggsey/libphonenumber-for-php](https://github.com/giggsey/libphonenumber -for-php), we can ensure efficient and robust standardization of phone numbers.
Proposed changes:
composer.json
to includebrick/phonenumber
as a dependency, ensuring that phone number manipulation is done with a dedicated and powerful tool.TelephoneFormatter.php
to use RFC3966-compliant URI format when outputting phone numbers.Telephone.php
to transform incoming phone numbers into their standardized representation, and to support formatting according to the region defined on the server.Benefits :
I firmly believe that these changes will add significant value to your library by simplifying phone number management for end users. I look forward to your comments and am open to any discussion to refine this proposal.
Thanks for your consideration.