PHP code example of mikeybelike / intl-tel-input-backpack

1. Go to this page and download the library: Download mikeybelike/intl-tel-input-backpack 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/ */

    

mikeybelike / intl-tel-input-backpack example snippets


$this->crud->addField([
    'name' => 'contact_number',
    'label' => 'Contact Number',
    'type' => 'intl-tel-input',
    'view_namespace' => 'mikeybelike.intl-tel-input-backpack::fields',

    // additional optional configuration supported
    'options' => [
        'initialCountry' => 'gb'
    ]
]);