Ecosyste.ms: Awesome
An open API service indexing awesome lists of open source software.
https://github.com/beastbytes/n6l-phone-number-data-php
NationalPhoneNumerInterface implementation using PHP for storage
https://github.com/beastbytes/n6l-phone-number-data-php
data itu-t0202 phone-number php yii3
Last synced: 14 days ago
JSON representation
NationalPhoneNumerInterface implementation using PHP for storage
- Host: GitHub
- URL: https://github.com/beastbytes/n6l-phone-number-data-php
- Owner: beastbytes
- License: other
- Created: 2023-01-28T14:18:49.000Z (almost 2 years ago)
- Default Branch: master
- Last Pushed: 2024-10-02T21:23:37.000Z (3 months ago)
- Last Synced: 2024-12-02T13:22:57.311Z (20 days ago)
- Topics: data, itu-t0202, phone-number, php, yii3
- Language: PHP
- Homepage:
- Size: 106 KB
- Stars: 0
- Watchers: 1
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
- License: LICENSE.md
Awesome Lists containing this project
README
# N6l Phone Number Data PHP (n6l-phone-number-data-php)
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](https://github.com/beastbytes/phone-number-validator) to validate national phone numbers
* [phone-number-helper](https://github.com/beastbytes/phone-number-helper) to convert national phone numbers to
[Extensible Provisioning Protocol (EPP) format](https://www.rfc-editor.org/rfc/rfc4933.html#section-2.5)For license information see the [LICENSE](LICENSE.md) file.
## Installation
The preferred way to install this extension is through [composer](http://getcomposer.org/download/).
Either run
```
php composer.phar require --prefer-dist beastbytes/n6l-phone-number-data-php
```or add
```json
"beastbytes/n6l-phone-number-data-php": "^2.0"
```to the 'require' section of your composer.json.
## Unit testing
The package is tested with [PHPUnit](https://phpunit.de/). To run tests:
```shell
./vendor/bin/phpunit
```## Mutation testing
The package tests are checked with [Infection](https://infection.github.io/) mutation framework with
[Infection Static Analysis Plugin](https://github.com/Roave/infection-static-analysis-plugin). To run it:```shell
./vendor/bin/roave-infection-static-analysis-plugin
```## Static analysis
The code is statically analyzed with [Psalm](https://psalm.dev/). To run static analysis:
```shell
./vendor/bin/psalm
```