PHP code example of tixastronauta / acc-ip

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

    

tixastronauta / acc-ip example snippets




use TixAstronauta\AccIp;

$accIp = new AccIp();
$ipAddress = $accIp->getIpAddress(); // this is the client's accurate IP Address. false on failure