katalyst/mdn-esn

Classes for formatting and converting Mobile Device Numbers (MDN) and Electronic Serial Numbers (ESN)

v1.0.0 2017-03-10 15:12 UTC

This package is auto-updated.

Last update: 2024-05-14 03:04:11 UTC


README

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.

Install

Via Composer

$ composer require katalyst/mdn-esn

Usage

$mdn = new Katalyst\MdnEsn\Mdn($mobile_number, $mdn_length);
$validMdn = $mdn->isValid();

$esn = new Katalyst\MdnEsn\Esn($esn);
$validEsn = $esn->isValidFormat();
...

Testing

$ phpunit

Contributing

Please see CONTRIBUTING for details.

Credits

License

The MIT License (MIT). Please see License File for more information.