pel / timezone
A class that simplifies timezone picking.
Installs: 6
Dependents: 0
Suggesters: 0
Security: 0
Stars: 1
Watchers: 1
Forks: 0
Open Issues: 0
pkg:composer/pel/timezone
Requires (Dev)
- phpunit/phpunit: 4.0.*
This package is not auto-updated.
Last update: 2025-10-25 23:58:42 UTC
README
timezone
About
A PSR-4 PHP class for creating a timezone picker dropdown menu.
Loading
include('Timezone.php'); $timezone = new Pel\Helper\Timezone;
Usage
// Get the pure list, $timezone_identifier => $display // Then create the menu how you like. foreach ($timezone::getList() as $timezone_identifier => $display) { echo '<option value="' . $timezone_identifier . '">' . $display . '</option>'; } // OR // Echo the menu directly. echo $timezone::getMenu();