bigwhoop / localized-time-zones
Provides access to translated/localized time zone names (timezones)
1.0.0
2019-01-05 20:25 UTC
Requires
- php: ^7.1
Requires (Dev)
- phpunit/phpunit: ^7.5
This package is auto-updated.
Last update: 2024-12-06 10:02:04 UTC
README
Provides access to translated time zone names from CLDR.
<?php use Bigwhoop\LocalizedTimeZones\Loader; var_dump(Loader::all('es_MX')); // [ // 'Africa/Abidjan' => 'Abiyán', // 'Africa/Accra' => 'Acra', // 'America/Adak' => 'Adak', // 'Africa/Addis_Ababa' => 'Addis Abeba', // 'Australia/Adelaide' => 'Adelaida', // 'Asia/Aden' => 'Adén', // ... // ] var_dump(Loader::one('Africa/Abidjan', 'es')); // Abiyán
Installation
composer require bigwhoop/localized-time-zones
License
MIT. See LICENSE file.