PHP code example of ayaseensd / ip-checker

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

    

ayaseensd / ip-checker example snippets


'providers' => [
    Ayaseensd\IpChecker\IpCheckerServiceProvider::class,
]
bash
php artisan check:ip-access {ips* : IPs or IP ranges to check} {--port= : Use specific port for the requests, default is 80} {--udp : Use UDP protocol, default is TCP}
bash
   php artisan check:ip-access 192.168.1.1
   
bash
   php artisan check:ip-access 192.168.1.1 --port=8080
   
bash
   php artisan check:ip-access 192.168.1.1 192.168.1.2
   
bash
   php artisan check:ip-access 192.168.1.0/24
   
bash
   php artisan check:ip-access 192.168.1.1 --udp