PHP code example of atk14 / ip-matcher

1. Go to this page and download the library: Download atk14/ip-matcher 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/ */

    

atk14 / ip-matcher example snippets


IP::Match("127.0.0.1", "127.0.0.1");

IP::Match("127.0.0.1", "127.0.0.1/24");

IP::Match("127.0.0.1", array("127.0.0.2", "127.0.0.1/24"));