PHP code example of pezhvak / onlinenic-api

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

    

pezhvak / onlinenic-api example snippets


$onlinenic = new Pezhvak\OnlinenicApi\Onlinenic($account_id, $password, $api_key, $sandbox);
// use the method you want, ex:
var_dump($onlinenic->checkDomain('universe.space'));

Route::get('/', function (\Pezhvak\OnlinenicApi\Onlinenic $onlinenic) {
    dd($onlinenic->checkDomain('universe.space'));
});

$onlinenic = resolve('Pezhvak\\OnlinenicApi\\Onlinenic');
dd($onlinenic->checkDomain('universe.space'));