library mdn-esn
Classes for formatting and converting Mobile Device Numbers (MDN) and Electronic Serial Numbers (ESN)
katalyst/mdn-esn
Classes for formatting and converting Mobile Device Numbers (MDN) and Electronic Serial Numbers (ESN)
- Friday, March 10, 2017
- by katalystsol
- Repository
- 1 Watchers
- 0 Stars
- 5 Installations
- PHP
- 0 Dependents
- 0 Suggesters
- 0 Forks
- 0 Open issues
- 2 Versions
- 0 % Grown
Katalyst MDN ESN
This package is designed to handle Mobile Device Numbers (MDN) and Electronic Serial Numbers for mobile devices. It is
used to validate the numbers and convert ESNs to different formats., (*1)
Install
Via Composer, (*2)
``` bash
$ composer require katalyst/mdn-esn, (*3)
## Usage
``` php
$mdn = new Katalyst\MdnEsn\Mdn($mobile_number, $mdn_length);
$validMdn = $mdn->isValid();
$esn = new Katalyst\MdnEsn\Esn($esn);
$validEsn = $esn->isValidFormat();
...
Testing
bash
$ phpunit, (*4)
Contributing
Please see CONTRIBUTING for details., (*5)
Credits
License
The MIT License (MIT). Please see License File for more information., (*6)