1. Go to this page and download the library: Download sirmerdas/ip-helper 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/ */
sirmerdas / ip-helper example snippets
use Sirmerdas\IpHelper\IpTools;
fo()); // [[address] => ::1,[version] => 6]
echo IpTools::getIpVersion("::1"); // 6
var_dump(IpTools::verifyIpV4("::1")); // false
var_dump(IpTools::verifyIpV6("::1")); // true
echo IpTools::fakeIpV4(); // 127.0.0.1
echo IpTools::fakeIpV6(); // ::1
Loading please wait ...
Before you can download the PHP files, the dependencies should be resolved. This can take some minutes. Please be patient.