Implementation of n6l-phone-number-data to retrieve national phone number formatting data from PHP storage.
n6l-phone-number-data implementations are used by:
- phone-number-validator to validate national phone numbers
- phone-number-helper to convert national phone numbers to Extensible Provisioning Protocol (EPP) format
For license information see the LICENSE file.
The preferred way to install this extension is through composer.
Either run
php composer.phar require --prefer-dist beastbytes/n6l-phone-number-data-php
or add
"beastbytes/n6l-phone-number-data-php": "^2.0"
to the 'require' section of your composer.json.
The package is tested with PHPUnit. To run tests:
./vendor/bin/phpunit
The package tests are checked with Infection mutation framework with Infection Static Analysis Plugin. To run it:
./vendor/bin/roave-infection-static-analysis-plugin
The code is statically analyzed with Psalm. To run static analysis:
./vendor/bin/psalm