1. Go to this page and download the library: Download olssonm/loopia-api 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/ */
olssonm / loopia-api example snippets
php
use Olssonm\LoopiaApi\Client;
$response = (new Client('username', 'password'))
->getDomains()
->getResponse();
php
use Olssonm\LoopiaApi\Client;
$client = new Client('username', 'password');
$client->getDomains();
$response = $client->getResponse();
php
use Olssonm\LoopiaApi\Client;
$response = (new Client('username', 'password'))
->getZoneRecords('example.com', '@')
->getResponse();
php
use Olssonm\LoopiaApi\Client;
$response = (new Client('username', 'password'))
->updateDNSServers('example.com', ['ns1.loopia.se', 'ns2.loopia.se'])
->getResponse();