cline / phone-number
Phone number library
Installs: 6
Dependents: 0
Suggesters: 0
Security: 0
Stars: 0
Watchers: 0
Forks: 0
Open Issues: 0
pkg:composer/cline/phone-number
Requires
- php: ^8.5.0
- giggsey/libphonenumber-for-php: ^9.0.19
Requires (Dev)
- cline/coding-standard: ^1.5.6
- orchestra/testbench: ^10.8
- symfony/var-dumper: ^7.4.0
README
Phone Number is a PHP library for parsing, validating, formatting, and extracting metadata from phone numbers. It provides an immutable, fluent API with comprehensive support for international phone numbers across all regions.
This is a wrapper around giggsey/libphonenumber-for-php, providing a cleaner API and additional convenience methods.
Requirements
Requires PHP 8.5+
Installation
composer require cline/phone-number
Documentation
- Basic Usage - Parsing, validation, formatting, and number components
- Metadata - Geographic descriptions, carrier info, and time zones
- Exception Handling - Handling parse errors gracefully
Change log
Please see CHANGELOG for more information on what has changed recently.
Contributing
Please see CONTRIBUTING and CODE_OF_CONDUCT for details.
Security
If you discover any security related issues, please use the GitHub security reporting form rather than the issue queue.
Credits
License
The MIT License. Please see License File for more information.