PHP code example of nameblitz / epik-api

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

    

nameblitz / epik-api example snippets



use Epik\Epik;


use Epik\Epik;

\Epik\Auth::setSignature('YourSignatureHere');
\Epik\Auth::setMarketplaceSignature('YourMarketplaceSignatureHere');

try {
    $domain = \Epik\Domains::Info('example.com');
    // Do Something with $Domain
} Catch ( Exception $e ) {
    echo 'The following error has occured: (' . $e->getCode() . ') ' . $e->getMessage();
}
bash
curl -sS https://getcomposer.org/installer | php