PHP code example of jorisros / iptools

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

    

jorisros / iptools example snippets


\JorisRos\IpTools::validateIp('192.168.192.13');

\JorisRos\IpTools::isIpInRange('192.168.192.13', '192.168.192.12-192.168.192.14');

\JorisRos\IpTools::isIpInRange('192.168.192.13', '192.168.192.*,192.168.192.*');

\JorisRos\IpTools::isIpInRange('192.168.192.13', '192.168.192.0/24');


alid = \JorisRos\IpTools::validateIp('192.168.192.13');