IPTools
IPTools copied to clipboard
How to install without Composer?
How to install without Composer?
This is not related to the lib.
You can define your own autoloader:
<?php
spl_autoload_register(function ($class_name) {
$class_name = str_replace( "\\", "/", $class_name );
include $class_name . '.php';
});
use IPTools\IP;
$ip = new IP('192.168.1.1');
echo $ip->version;// IPv4