PHP code example of umpirsky / wisdom
1. Go to this page and download the library: Download umpirsky/wisdom 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/ */
umpirsky / wisdom example snippets
$domain = 'umpirsky.com';
$wisdom = new Wisdom($client);
$wisdom
->check($domain)
->then(function ($available) use ($domain) {
printf('Domain %s is %s.', $domain, $available ? 'available' : 'taken');
});
// Outputs:
// Domain umpirsky.com is taken.