Skip to content

PHP library for formatting and validating Mauritius phone numbers

License

Notifications You must be signed in to change notification settings

aliirfaan/mu-phone-number-kit

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

12 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

PhoneNumberKit for Mauritius

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

About

PHP library for formatting and validating Mauritius phone numbers

Resources

License

Stars

Watchers

Forks

Packages

No packages published

Languages