1. Go to this page and download the library: Download dolalima/laravel-dns-facade 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/ */
dolalima / laravel-dns-facade example snippets
'providers' => [
// Other service providers...
Dolalima\Laravel\Dns\Providers\DnsServiceProvider::class,
],
use Dolalima\Laravel\Dns\Facades\Dns;
$zones = Dns::zones();
or
Dns::provider('cloudflare')->zones();
use Dolalima\Laravel\Dns\Facades\Dns;
$zone = Dns::zone('example.com');
use Dolalima\Laravel\Dns\Facades\Dns;
$zone = Dns::zone('example.com');
$records = Dns::records($zone);
or
$records = $zone->records();
use Dolalima\Laravel\Dns\Facades\Dns;
$zone = Dns::zone('example.com');
$record = Dns::create($zone, 'A', 'www');
use Dolalima\Laravel\Dns\Facades\Dns;
$zone = Dns::zone('example.com');
$result = Dns::delete($zone,'www');
bash
php artisan vendor:publish --tag=config
Loading please wait ...
Before you can download the PHP files, the dependencies should be resolved. This can take some minutes. Please be patient.