then you can autoload everything through the auto-generated autoloader
provided by Composer:

123

<?phprequire'vendor/.composer/autoload.php';

Retrieving raw WHOIS responses

By now we have implemented the most simple API exposed, the whois:index
one, which returns the raw WHOIS informations associated to a domain.

You can take a look at the example at sample/index.php or try it live:

1

php sample/index.php

bare in mind that you’ll need to sign for a free API key up at Robowhois
website (as far as I remember, they provide 500 free request, but the annual
fee for unlimited requests is very cheap).

You can also be a bit more creative than the example above:

12345678910111213141516171819202122

<?phpuseRobowhois\Robowhois;useRobowhois\Exception;require'vendor/.composer/autoload.php';$robowhois=newRobowhois('INSERT-YOUR-API-KEY-HERE');try{// same as $robowhois->whoisIndex(...)->getContent()echo$robowhois->whoisIndex('robowhois.com');}catch(Exception\Http\Request\Unauthorized$e){echo"WTF did you used a pirated API key?!?!?!";}}catch(Exception\Http\Response\NotFound$e){echo"OMG 404 happened :-|";}}catch(Exception\Http\Response\ServerError$e){echo"Server too drunk to fulfill the request";}...

Next release

In the next meeting – probably next monday – we will implement the account API,
used to retrieve informations about the client’s account – useful for knowing how many
remaining HTTP requests you have, the whois:availability API, to check whether a
domain is available or not, and the whois:record API, identical to the one we
already implemented, but returning a JSON response.

Then… take a look at the issue tracker
to stay updated about the state of the project: in the next 3 weeks we should
be able to go out with a stable client for y’all.