Download the PHP package sunnydrake/serverip-get-datetime without Composer
On this page you can find all versions of the php package sunnydrake/serverip-get-datetime. It is possible to download/install these versions without Composer. Possible dependencies are resolved automatically.
Download sunnydrake/serverip-get-datetime
More information about sunnydrake/serverip-get-datetime
Files in sunnydrake/serverip-get-datetime
Package serverip-get-datetime
Short Description Returns current DateTime for server ip. Uses API from http://worldtimeapi.org .
License GPL-3.0-or-later
Informations about the package serverip-get-datetime
SunnyDrake's Server IP Get DateTime PHP Lib with worldtimeapi.org API
Requirements
This module has no external dependencies. Needs allow_url_fopen set to true in php.ini or code.
Install via Composer
We recommend installing this package with Composer.
Download Composer
To download Composer, run in the root directory of your project:
You should now have the file composer.phar
in your project directory.
Install Dependencies
Run in your project root:
You should now have the files composer.json
and composer.lock
as well as
the directory vendor
in your project directory. If you use a version control
system, composer.json
should be added to it.
Require Autoloader
After installing the dependencies, you need to require the Composer autoloader from your code:
Install without Composer
Place the 'ServerGetDateTime.php' file in the include_path
as specified in your
php.ini
file or place it in the same directory as your PHP scripts.
Usage
Gets DateTime for current IP :
Copyright and License
This software is Copyright (c) 2021 by Oleh Marychev.
This is free software, licensed under the GNU Lesser General Public License version 3 or later.
Thanks
Thanks to Oleksandr Roslov [email protected] for task.