PHP code example of develoopin / timezonelist

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

    

develoopin / timezonelist example snippets


...
"
    "develoopin/timezonelist": "6.*"
},

...
'providers' => array(
    ...
    Develoopin\Timezonelist\TimezonelistServiceProvider::class,
),

$timezone =  new Timezonelist();
return $timezone->toArray();

$timezone = new Timezonelist();
$timezone->create($name, $selected, $attr);

$timezone->create('timezone', 'Asia/Ho_Chi_Minh');

$timezone->create('timezone', null, 'class="styled"');

$timezone->create('timezone', null, 'id="timezone" class="styled"');

$timezone->create('timezone', null, [
    'id'    => 'timezone',
    'class' => 'styled',
    ...
]);

$timezone_list = $timezone->toArray();