PHP code example of assoconnect / libphone-dom-tom

1. Go to this page and download the library: Download assoconnect/libphone-dom-tom 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/ */

    

assoconnect / libphone-dom-tom example snippets

`


// phone number in Guadeloupe
echo AssoConnect\LibphoneDOMTOM::parse('+33590925585');
// => +590590925585

// phone number in Metropolitan France 
echo AssoConnect\LibphoneDOMTOM::parse('+33123456789');
// => +33123456789