PHP code example of api-clients / pi-hole
1. Go to this page and download the library: Download api-clients/pi-hole 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/ */
api-clients / pi-hole example snippets
use ApiClients\Client\PiHole\AsyncClient;
use ApiClients\Client\PiHole\Resource\OverviewInterface;
use React\EventLoop\Factory;
use function ApiClients\Foundation\resource_pretty_print;
);
});
$loop->run();