aliirfaan / mu-phone-number-kit
Package to work with Mauritius phone numbers
3.2.2
2026-05-13 11:35 UTC
Requires (Dev)
- phpunit/phpunit: ^13.1.6
This package is auto-updated.
Last update: 2026-05-13 11:37:11 UTC
README
PHP library for formatting and validating phone numbers.
Features
- Clean mobile phone numbers by removing unwanted characters
- Validate and format local mobile phone numbers
Installation
Install the latest version with
$ composer require aliirfaan/mu-phone-number-kit
Basic Usage
<?php require 'vendor/autoload.php'; use Aliirfaan\PhoneNumberKit\MobileNumberKit; // instantiate class $mobileNumberKit = new MobileNumberKit(); // use $localize = $mobileNumberKit->localizeMobileNumber('0023057563628'); // 57563628