IPTools icon indicating copy to clipboard operation
IPTools copied to clipboard

How to install without Composer?

Open r0maneremin opened this issue 5 years ago • 2 comments

How to install without Composer?

r0maneremin avatar Apr 07 '20 13:04 r0maneremin

This is not related to the lib.

simPod avatar Sep 22 '21 13:09 simPod

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

thinksilicon avatar Mar 20 '23 16:03 thinksilicon