Download the PHP package cahuk/server-timezone without Composer
On this page you can find all versions of the php package cahuk/server-timezone. It is possible to download/install these versions without Composer. Possible dependencies are resolved automatically.
Table of contents
Download cahuk/server-timezone
More information about cahuk/server-timezone
Files in cahuk/server-timezone
Download cahuk/server-timezone
More information about cahuk/server-timezone
Files in cahuk/server-timezone
Vendor cahuk
Package server-timezone
Short Description Compatible Clock that gets server time from IP-based geolocation
License MIT
Homepage https://github.com/cahuk/server-timezone
Package server-timezone
Short Description Compatible Clock that gets server time from IP-based geolocation
License MIT
Homepage https://github.com/cahuk/server-timezone
Please rate this library. Is it a good library?
Informations about the package server-timezone
ServerTimezone Resolver
A PHP package to resolve the current time based on an IP address using various external GeoIP and time APIs.
Installation
Running Unit Tests
Before running tests, clone the repository and install dependencies:
Usage Example
Below is a single comprehensive example demonstrating different approaches to resolve time based on IP:
Notes
- Replace YOUR_API_KEY_HERE in Example 4 with your valid premium API key.
- The examples demonstrate flexibility in using different IP and time services.
- You can extend or customize mappers to fit different API response formats.
Running the example script
All versions of server-timezone with dependencies
PHP Build Version
Package Version
The package cahuk/server-timezone contains the following files
Loading the files please wait ....