PHP code example of iamfredric / phone-numbers-se

1. Go to this page and download the library: Download iamfredric/phone-numbers-se 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/ */

    

iamfredric / phone-numbers-se example snippets


$number = new \Iamfredric\Phone\PhoneNumber('08-7020090');

$number->exists(); // Bool
$number->full(); // 0046 (0)8 702 00 90
$number->readable(); // 08 702 00 90
$number->tel(); // +4687020090