Skip to content

Latest commit

 

History

History
30 lines (20 loc) · 588 Bytes

README.md

File metadata and controls

30 lines (20 loc) · 588 Bytes

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