PHP code example of laravel-myanmar-tools / phone-number
1. Go to this page and download the library: Download laravel-myanmar-tools/phone-number library. Choose the download type require.
2. Extract the ZIP file and open the index.php.
3. Add this code to the index.php.
<?php
require_once('vendor/autoload.php');
/* Start to develop here. Best regards https://php-download.com/ */
laravel-myanmar-tools / phone-number example snippets
use LaravelMyanmarTools\PhoneNumber\PhoneNumber;
$phoneNumber = new PhoneNumber;
$phoneNumber->isMyanmarPhoneNumber('09250000000'); // return true
use LaravelMyanmarTools\PhoneNumber\PhoneNumber;
$phoneNumber = new PhoneNumber;
$phoneNumber->isMpt('09250000000'); // return true
use LaravelMyanmarTools\PhoneNumber\PhoneNumber;
$phoneNumber = new PhoneNumber;
$phoneNumber->isOoredoo('09970000000'); // return true
use LaravelMyanmarTools\PhoneNumber\PhoneNumber;
$phoneNumber = new PhoneNumber;
$phoneNumber->isTelenor('09790000000'); // return true
use LaravelMyanmarTools\PhoneNumber\PhoneNumber;
$phoneNumber = new PhoneNumber;
$phoneNumber->isMec('0930000000'); // return true
use LaravelMyanmarTools\PhoneNumber\PhoneNumber;
$phoneNumber = new PhoneNumber;
$phoneNumber->isMytel('09690000000'); // return true