1. Go to this page and download the library: Download michaelesmith/dyndns-kit 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/ */
michaelesmith / dyndns-kit example snippets
$server = new Server([
new GenericHandler(
new DynDNSTransformer(),
new HttpBasicAuthenticator([new RegexUser('testuser', 's3cret', '.+')]),
new JsonProcessor(__DIR__ . '/var/dns.json')
),
]);
$server->execute(Request::createFromGlobals());
$server = new Server([
new GenericHandler(
new DynDNSTransformer(),
new HttpBasicAuthenticator([new RegexUser('testuser', 's3cret', '.+')]),
new CacheProcessor(
new DigitalOceanApiProcessor(['example.com'], new DigitalOceanV2(new GuzzleHttpAdapter('my_api_token'))),
new FilesystemCachePool(new Filesystem(new Local(__DIR__ . '/../var/')))
)
),
]);
$server->execute(Request::createFromGlobals());
Loading please wait ...
Before you can download the PHP files, the dependencies should be resolved. This can take some minutes. Please be patient.