Download the PHP package namnv609/timezonedb-php-api without Composer
On this page you can find all versions of the php package namnv609/timezonedb-php-api. It is possible to download/install these versions without Composer. Possible dependencies are resolved automatically.
Download namnv609/timezonedb-php-api
More information about namnv609/timezonedb-php-api
Files in namnv609/timezonedb-php-api
Package timezonedb-php-api
Short Description PHP API client for TimeZoneDB.com
License MIT
Informations about the package timezonedb-php-api
TimeZoneDB API
TimeZoneDB provides free time zone database for cities of the world. The database is licensed under Creative Commons Attribution 3.0 License. It contains countries name, time zones, abbreviation, GMT offset, and Daylight Saving Time (DST). The data is available in CSV and SQL format. You can download and implement into your projects for free.
System requirements
- PHP >= 5.5
Installation
Using Composer
composer install namnv609/timezonedb-php-api
or you can include the following in your composer.json
"namnv609/timezonedb-php-api": "1.0"
Usage Instructions
First, create new TimeZoneDB
instance to make configuring the library for usage.
Once the TimeZoneDB
instance has been registered. You may use it like so:
List Time Zone
List out all available time zones supported by TimeZoneDB.
Get Time Zone
Get local time of a city by its name, time zone, latitude & longtiude, or IP address.
Convert Time Zone
Convert timestamp between two different time zone.
Utilities
We support some utilities function for your usage like:
listTimeZones
List of time zones supported by TimeZoneDB
codeToZones
Convert country code to time zones
countryToZones
Country name to time zones
zoneToCode
Time zone to country code
zoneToCountry
Time zone to country name