PHP code example of androlax2 / acf-phone-number

1. Go to this page and download the library: Download androlax2/acf-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/ */

    

androlax2 / acf-phone-number example snippets


{
  +"number": "+1 405-867-5309"
  +"country": "US"
  +"uri": "tel:+14058675309"
  +"e164": "+14058675309"
  +"rfc3966": "tel:+1-405-867-5309"
  +"national": "(405) 867-5309"
  +"international": "+1 405-867-5309"
  +"carrier": ""
  +"location": "Oklahoma"
  +"timezone": array:1 [▼
    0 => "America/Chicago"
  ]
}

$field
  ->addField('my_number_field', 'phone_number')
    ->setConfig('default_country', 'us');