PHP code example of piteurstudio / php-nicdz

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

    

piteurstudio / php-nicdz example snippets


use PiteurStudio\NicDz;

cDz('example-domain.dz');

$isAvailable = $domainChecker->isAvailable(); // Returns boolean: true if available, false otherwise

$domainChecker = new NicDz('piteur-studio.dz');

// As an array
$whoisDataArray = $domainChecker->whois()->toArray();

// As an object
$whoisDataObject = $domainChecker->whois()->toObject();

// As a raw string
$whoisDataString = $domainChecker->whois()->toString();

// As JSON
$whoisDataJson = $domainChecker->whois()->toJson();

bash
composer