fuitad/vwhois

PHP Whois Client and Parser

v0.2.2-alpha 2017-12-15 19:59 UTC

This package is auto-updated.

Last update: 2024-04-27 00:12:17 UTC


README

This library is very heavily based on the Ruby libraries whois and whois-parser. It's a work in progress and a lot of parsers are not yet available.

I know there are other whois libraries for PHP that exists but I don't like how they returns the data. A cleaner and standard structure was important for me so I decided to create this package.

Absolutely not ready for production usage yet. I might make some breaking changes in the upcoming weeks. Use at your own risk.

Requirements

  • PHP >= 5.4.0

Installation

composer require fuitad/vwhois

How to use

use vWhois\vWhois;

$vWhois = new vWhois();

$whoisResult = $vWhois->lookup('google.com');

Credits

Again, this library wouldn't exist without the awesome whois and whois-parser ruby gems.

Contributing

Pull requests are welcome. So many parsers are needed for all them TLDs O_o.

License

This is Free Software distributed under the MIT license.