aliirfaan / mu-phone-number-kit
Package to work with Mauritius phone numbers
3.1.0
2023-06-16 10:49 UTC
Requires (Dev)
This package is auto-updated.
Last update: 2025-03-16 14:42:31 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