beastbytes / n6l-phone-number-data-php
Implementation of n6l-phone-number-data to retrieve national phone number data from PHP storage
2.0.2
2024-10-02 21:21 UTC
Requires
- php: ^8.0
- beastbytes/n6l-phone-number-data: ^2.0
Requires (Dev)
- consolidation/robo: ^4.0
- phpunit/phpunit: ^10.0
- roave/infection-static-analysis-plugin: ^1.0
- roave/security-advisories: dev-latest
- spatie/phpunit-watcher: ^1.0
- vimeo/psalm: ^5.0
README
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.
Installation
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.
Unit testing
The package is tested with PHPUnit. To run tests:
./vendor/bin/phpunit
Mutation testing
The package tests are checked with Infection mutation framework with Infection Static Analysis Plugin. To run it:
./vendor/bin/roave-infection-static-analysis-plugin
Static analysis
The code is statically analyzed with Psalm. To run static analysis:
./vendor/bin/psalm