Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

How to install without Composer? #32

Open
r0maneremin opened this issue Apr 7, 2020 · 2 comments
Open

How to install without Composer? #32

r0maneremin opened this issue Apr 7, 2020 · 2 comments

Comments

@r0maneremin
Copy link

How to install without Composer?

@simPod
Copy link
Contributor

simPod commented Sep 22, 2021

This is not related to the lib.

@thinksilicon
Copy link

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

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

3 participants