- A PHP library to retrieve WHOIS informations
- Retrieving raw WHOIS informations in PHP
- Checking a domain’s availability with PHP
- Y U NO access WHOIS informations in PHP?
This post is part of the ”WHOIS in PHP: consuming the Robowhois API” series; here is a list of all the articles contained this series:
It’s been a while I don’t blog about the
Robowhois PHP client that I’m developing
together with David so, since we recently released
the 0.8.0
version I want to share with you what you can do with it now.
Checking a domain’s availability
The availability API is probably the greatest feature of the Robowhois webservice, letting you check for a domain’s availability with a simple, uniform HTTP request.
1 2 3 4 5 6 7 8 9 |
|
The opposite thing is achieved using the ->isRegistered()
method.
You can also retrieve an array as returned from the webservice, by doing:
1 2 3 4 5 6 7 8 9 10 11 |
|
Retrieve informations about your account
A must-have, since you should always check how many remaining credits
you have, the account
API lets you retrieve some of your personal data
from your Robowhois.com account:
1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 |
|
Minor things
We also polished some code, refactored stuff and added some tests (unit and integration ones).
For instance, when using the record
API, you can retrieve the daystamp of the
response as DateTime
object:
1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 |
|
You can download the latest tag
of the library (currently 0.8.0
) and start using it: the README
exhaustively explains what you can do with this small client, and some
samples
are provided under the sample
directory.