PHP code example of infrajs / ip
1. Go to this page and download the library: Download infrajs/ip library. Choose the download type require. 2. Extract the ZIP file and open the index.php. 3. Add this code to the index.php.
<?php
require_once('vendor/autoload.php');
/* Start to develop here. Best regards https://php-download.com/ */
infrajs / ip example snippets
IP::get(); //ip возьмётся текущего посетителя REMOTE_ADDR
IP::get($ip); //Данные для указанного ip
IP::get(true); //Данные по ip сервера