Download the PHP package cocur/domain without Composer
On this page you can find all versions of the php package cocur/domain. It is possible to download/install these versions without Composer. Possible dependencies are resolved automatically.
Informations about the package domain
cocur/domain
Check availability of domain names and get WHOIS information.
Features
- Check availability of domains
- Retrieve WHOIS information of domains
- Support for over 350 TLDs, including new generic TLDs like
.coffee
or.sexy
- Command line tool and library
- Compatible with PHP >= 5.4 and HHVM
Installation
Dependending on how you want to use Domain there exist different installation methods.
Composer
If you want to use the library as a dependency in your project you should use Composer to do so:
Currently there exists no stable release of domain.
Download PHAR
If you only want to use the command line tool to retrieve WHOIS information you can download the PHAR.
You can now retrieve WHOIS information using Cocur Domain by executing
Usage
Command line WHOIS
You can use the included command line tool to retrieve WHOIS information about a domain:
Library
The library contains two main classes: Whois\Client
and Availability\Client
They require information about WHOIS servers and patterns to match available domains stored in data/tld.json
.
Whois
Availability
To check the availability of a domain name the Availability\Client
requires an instance of Whois\Client
.
Changelog
Verison 0.2 (15 June 2016)
- #1 Add
.frl
TLD (by rskuipers) - #3 Add
.amsterdam
TLD (by rskuipers) - #4 Fix pattern for
.ee
(by huglester)
Version 0.1 (19 May 2014)
- Initial release
Author
Florian Eckerstorfer 
License
The MIT license applies to cocur/domain
. For the full copyright and license information, please view the LICENSE file distributed with this source code.