Download the PHP package krepysh-spec/ipros without Composer
On this page you can find all versions of the php package krepysh-spec/ipros. It is possible to download/install these versions without Composer. Possible dependencies are resolved automatically.
Table of contents
Download krepysh-spec/ipros
More information about krepysh-spec/ipros
Files in krepysh-spec/ipros
Download krepysh-spec/ipros
More information about krepysh-spec/ipros
Files in krepysh-spec/ipros
Vendor krepysh-spec
Package ipros
Short Description PSR-20 compatible clock library that retrieves current time using external providers and IP geolocation.
License MIT
Package ipros
Short Description PSR-20 compatible clock library that retrieves current time using external providers and IP geolocation.
License MIT
Please rate this library. Is it a good library?
Informations about the package ipros
IPRosClock — External Time Provider via IP Address
IPRosClock is a PHP library that implements Psr\Clock\ClockInterface
and retrieves the current time using external time or geo-IP providers such as ipapi.co.
🚀 Features
- PSR-compatible ClockInterface
- Get current time based on IP address
- Easily switchable external providers
- Strict IP validation
- Extendable provider abstraction
📦 Installation
🧑💻 Usage
1. Create a Provider
You can use a built-in provider like IpApiProvider, or create your own by extending AbstractProvider.
2. Get Time for Current IP
`
3. Set Custom IP Address
`
4. Set Custom Options (e.g. API Key, Region)
You can pass any custom options required by your provider using setOptions():
`
🧩 Providers
You can define a custom provider like this:
✅ Requirements
- PHP 8.1+
- Composer
All versions of ipros with dependencies
PHP Build Version
Package Version
The package krepysh-spec/ipros contains the following files
Loading the files please wait ....