PHP code example of kubrick / lib-e164
1. Go to this page and download the library: Download kubrick/lib-e164 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/ */
kubrick / lib-e164 example snippets
$numbers[] = new E164FRNumber("350000001");
$numbers[] = new E164FRNumber("350000009");
$numbers[] = new E164FRNumber("350000002");
// Will create missings numbers between the lower and the higher given (given are excluded)
$newNumbers = FranceNumberFactory::missingNumbers($numbers, 5);
dd($newNumbers);
php
use Kubrick\E164\Number\E164FRNumber;
/ 9 digit french number
$local = new E164FRNumber('0388809568'); // 10 digits
$int = new E164FRNumber('0033388809568'); // international
$e164 = new E164FRNumber('+33388809568'); // E164