Download the PHP package joy2362/php-time-zone without Composer
On this page you can find all versions of the php package joy2362/php-time-zone. It is possible to download/install these versions without Composer. Possible dependencies are resolved automatically.
Table of contents
Download joy2362/php-time-zone
More information about joy2362/php-time-zone
Files in joy2362/php-time-zone
Download joy2362/php-time-zone
More information about joy2362/php-time-zone
Files in joy2362/php-time-zone
Vendor joy2362
Package php-time-zone
Short Description A simple package that provide list of all timezone that php support
License MIT
Homepage https://github.com/joy2362/php-time-zone
Package php-time-zone
Short Description A simple package that provide list of all timezone that php support
License MIT
Homepage https://github.com/joy2362/php-time-zone
Please rate this library. Is it a good library?
Informations about the package php-time-zone
Php-Time-Zone
A wrapper to enumerate PHP 7.x, 8.x timezones list.
Basics
- Creates timezone arrays based on PHP's supported timezones with optional grouping by region
- Lists are sorted by offset from high (+14:00) to low (-11:00)
- Return as php arrays for whatever use your heart desires
Installation
You can install this package using Composer.
Publish config file:
Config
Name | Default | Description |
---|---|---|
DEFAULT_TIME_ZONE | 'GMT' | label start value support 'GMT' and 'UTC' |
TIME_DIFF_SYMBOL | '.' | seperator between time different hour and minutes |
LABEL_FIELD_NAME | 'label' | timezone list array key name for label |
VALUE_FIELD_NAME | 'value' | timezone list array key name for value |
Usage
1. Get all timezone list with label and value pair
2. Get all timezone list only value
3. Get all timezone list only label
4. Get timezone list by a region
5. Get timezone label from value
6. Get timezone value from label
7. Get region list
8. Get supported zone list
Changelog
Please see Changelog for more information on what has changed recently.
Contributing
Pull requests are more than welcome. You must follow the PSR coding standards.
Security
If you discover any security-related issues, please email [email protected] instead of using the issue tracker.
Thanks to
This is based off some lovely work by:
All versions of php-time-zone with dependencies
PHP Build Version
Package Version
The package joy2362/php-time-zone contains the following files
Loading the files please wait ....