PHP code example of yogeshkoli / user-ip
1. Go to this page and download the library: Download yogeshkoli/user-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/ */
yogeshkoli / user-ip example snippets
UserIP::get();
UserIP::validate($ip);
geshKoli\UserIP\UserIP;
var_dump(UserIP::get());
/example/UserIPTest.php:7:string '192.168.10.1' (length=12)
ogeshKoli\UserIP\UserIP;
$ip = '192.168.10.1';
var_dump(UserIP::validate($ip));
/example/ValidateIPTest.php:9:boolean true