PHP code example of log1x / acf-phone-number

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

    

log1x / acf-phone-number example snippets


^ array:10 [
  "carrier" => ""
  "country" => "United States"
  "e164" => "+14058675309"
  "international" => "+1 405-867-5309"
  "location" => "Oklahoma"
  "national" => "(405) 867-5309"
  "rfc3966" => "tel:+1-405-867-5309"
  "timezone" => array:1 [
    0 => "America/Chicago"
  ]
  "uri" => "tel:+14058675309"
]

$field
  ->addField('my_number_field', 'phone_number')
    ->setConfig('placeholder', '+1 555-555-5555')
    ->setConfig('default_country', 'us');