Home

Awesome

<h3 align="center"> <a href="https://github.com/umpirsky"> <img src="https://farm2.staticflickr.com/1709/25098526884_ae4d50465f_o_d.png" /> </a> </h3> <p align="center"> <a href="https://github.com/umpirsky/Symfony-Upgrade-Fixer">symfony upgrade fixer</a> &bull; <a href="https://github.com/umpirsky/Twig-Gettext-Extractor">twig gettext extractor</a> &bull; <b>wisdom</b> &bull; <a href="https://github.com/umpirsky/centipede">centipede</a> &bull; <a href="https://github.com/umpirsky/PermissionsHandler">permissions handler</a> &bull; <a href="https://github.com/umpirsky/Extraload">extraload</a> &bull; <a href="https://github.com/umpirsky/Gravatar">gravatar</a> &bull; <a href="https://github.com/umpirsky/locurro">locurro</a> &bull; <a href="https://github.com/umpirsky/country-list">country list</a> &bull; <a href="https://github.com/umpirsky/Transliterator">transliterator</a> </p>

Wisdom Build Status

<img src="https://raw.github.com/umpirsky/wisdom/master/icon/icon.png" />

Domain availability checker based on React/Whois.

Example

<?php

$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.

See more examples.

Adding support for a TLD

This example uses the ch domain, replace .ch with your own one.

$ whois umpirsky-wisdom.ch > tests/Wisdom/Fixtures/whois/umpirsky-wisdom.ch
$ whois google.ch > tests/Wisdom/Fixtures/whois/google.ch

Tests

To run the test suite, you need PHPUnit.

$ phpunit