PHP code example of davidbohn / holger

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

    

davidbohn / holger example snippets




entials = [
    'username' => 'user',
    'password' => 'password'
];

if (file_exists('config.php')) {
    $loadedCredentials = rd'], $credentials['username']);

var_dump($holger->ip->externalIP());

var_dump($holger->ip->externalIPv6());
var_dump($holger->ip->getIPv6Prefix());
var_dump($holger->ip->status());