1. Go to this page and download the library: Download ixnode/php-timezone 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/ */
ixnode / php-timezone example snippets
use Ixnode\PhpTimezone\Timezone;
print (new Timezone('Europe/Berlin'))->getCountryCode();
// (string) "DE"
print (new Timezone('Europe/Berlin'))->getCountryName();
// (string) "Germany"
use Ixnode\PhpTimezone\Constants\Locale
print (new Timezone('Europe/Berlin'))->getCountryName(Locale::DE_DE);
// (string) "Deutschland"