2017 © Pedro PelĆ”ez
 

library wisdom

Domain availability checker.

image

umpirsky/wisdom

Domain availability checker.

  • Tuesday, October 11, 2016
  • by umpirsky
  • Repository
  • 9 Watchers
  • 120 Stars
  • 126 Installations
  • PHP
  • 1 Dependents
  • 0 Suggesters
  • 16 Forks
  • 1 Open issues
  • 2 Versions
  • 5 % Grown

The README.md

symfony upgrade fixer • twig gettext extractor • wisdom • centipede • permissions handler • extraload • gravatar • locurro • country list • transliterator , (*1)

Wisdom Build Status

, (*2)

Domain availability checker based on React/Whois., (*3)

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., (*4)

Adding support for a TLD

This example uses the ch domain, replace .ch with your own one., (*5)

  • First, create the test cases:
$ whois umpirsky-wisdom.ch > tests/Wisdom/Fixtures/whois/umpirsky-wisdom.ch
$ whois google.ch > tests/Wisdom/Fixtures/whois/google.ch
  • Run the tests to make sure they fail., (*6)

  • Identify a string in the umpirsky-wisdom variant that identifies the domain as available., (*7)

  • Create the Wisdom\Whois\Parser\Tld\Ch class and implement the isAvailable method., (*8)

  • Run the tests to make sure they pass., (*9)

  • Create a pull request on GitHub., (*10)

Tests

To run the test suite, you need PHPUnit., (*11)

$ phpunit

The Versions

11/10 2016

dev-master

9999999-dev

Domain availability checker.

  Sources   Download

MIT

The Requires

 

The Development Requires

12/03 2016

0.1.0

0.1.0.0

Domain availability checker.

  Sources   Download

MIT

The Requires

 

The Development Requires