PHPackages                             webas/domain - PHPackages - PHPackages  [Skip to content](#main-content)[PHPackages](/)[Directory](/)[Categories](/categories)[Trending](/trending)[Leaderboard](/leaderboard)[Changelog](/changelog)[Analyze](/analyze)[Collections](/collections)[Log in](/login)[Sign up](/register)

1. [Directory](/)
2. /
3. [Utility &amp; Helpers](/categories/utility)
4. /
5. webas/domain

ActiveLibrary[Utility &amp; Helpers](/categories/utility)

webas/domain
============

Check domain name availability and WHOIS

v0.12(7y ago)038MITPHPPHP ^7.0.0

Since May 19Pushed 4y ago1 watchersCompare

[ Source](https://github.com/huglester/domain)[ Packagist](https://packagist.org/packages/webas/domain)[ RSS](/packages/webas-domain/feed)WikiDiscussions master Synced 3d ago

READMEChangelog (4)Dependencies (2)Versions (6)Used By (0)

Webas/Domain
============

[](#webasdomain)

> Check availability of domain names and get WHOIS information.

Features
--------

[](#features)

- Check availability of domains
- Retrieve WHOIS information of domains
- Support for over 350 TLDs, including new generic TLDs like `.coffee` or `.sexy`
- Compatible with PHP ^7.0

Installation
------------

[](#installation)

```
$ composer require webas/domain
```

Usage
-----

[](#usage)

### Library

[](#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

[](#whois)

```
use Webas\Domain\Connection\ConnectionFactory;
use Webas\Domain\Data\DataLoader;
use Webas\Domain\Whois\Client;

$factory = new ConnectionFactory();
$dataLoader = new DataLoader();
$data = $dataLoader->load(__DIR__.'/data/tld.json');

$client = new Client($factory, $data);

echo $client->query($domainName);
```

#### Availability

[](#availability)

To check the availability of a domain name the `Availability\Client` requires an instance of `Whois\Client`.

```
use Webas\Domain\Connection\ConnectionFactory;
use Webas\Domain\Data\DataLoader;
use Webas\Domain\Whois\Client as WhoisClient;
use Webas\Domain\Availability\Client as AvailabilityClient;

$factory = new ConnectionFactory();
$dataLoader = new DataLoader();
$data = $dataLoader->load(__DIR__.'/data/tld.json');

$whoisClient = new WhoisClient($factory, $data);
$client = new AvailabilityClient($whoisClient, $data);

echo $client->isAvailable($domainName);
```

Changelog
---------

[](#changelog)

### Version 0.1 (24 Nov 2017)

[](#version-01-24-nov-2017)

- Initial release

THANKS
------

[](#thanks)

Special thanks for `cocur/domain` ! Awesome package.

googlegooglegg.nl

###  Health Score

24

—

LowBetter than 32% of packages

Maintenance20

Infrequent updates — may be unmaintained

Popularity7

Limited adoption so far

Community9

Small or concentrated contributor base

Maturity52

Maturing project, gaining track record

 Bus Factor1

Top contributor holds 83.3% of commits — single point of failure

How is this calculated?**Maintenance (25%)** — Last commit recency, latest release date, and issue-to-star ratio. Uses a 2-year decay window.

**Popularity (30%)** — Total and monthly downloads, GitHub stars, and forks. Logarithmic scaling prevents top-heavy scores.

**Community (15%)** — Contributors, dependents, forks, watchers, and maintainers. Measures real ecosystem engagement.

**Maturity (30%)** — Project age, version count, PHP version support, and release stability.

###  Release Activity

Cadence

Every ~722 days

Total

5

Last Release

1490d ago

PHP version history (3 changes)v0.1PHP &gt;=5.4

v0.11PHP ^7.0.0

v0.2PHP ^7.1|^8.0

### Community

Maintainers

![](https://www.gravatar.com/avatar/8a5fceb9a3bc5c133338c939ef39b8408e9ebefb4dfd7c8d614362fe6d16ff53?d=identicon)[huglester](/maintainers/huglester)

---

Top Contributors

[![huglester](https://avatars.githubusercontent.com/u/150731?v=4)](https://github.com/huglester "huglester (10 commits)")[![rskuipers](https://avatars.githubusercontent.com/u/1918518?v=4)](https://github.com/rskuipers "rskuipers (2 commits)")

---

Tags

domainwhois

###  Code Quality

TestsPHPUnit

### Embed Badge

![Health badge](/badges/webas-domain/health.svg)

```
[![Health](https://phpackages.com/badges/webas-domain/health.svg)](https://phpackages.com/packages/webas-domain)
```

###  Alternatives

[phpwhois/phpwhois

phpWhois - library for querying whois services and parsing results. Based on phpwhois.org

322392.6k1](/packages/phpwhois-phpwhois)[novutec/whoisparser

Lookup domain names, IP addresses and AS numbers by WHOIS.

392.0M1](/packages/novutec-whoisparser)[cocur/domain

Check domain name availability and WHOIS

701.3k](/packages/cocur-domain)[helgesverre/domain-availability

A PHP library for checking if a domain name is registered or not

26618.4k1](/packages/helgesverre-domain-availability)[aura/payload

A Domain Payload implementation.

56370.4k9](/packages/aura-payload)[aura/payload-interface

An interface package for Domain Payload implementations.

13392.7k4](/packages/aura-payload-interface)

PHPackages © 2026

[Directory](/)[Categories](/categories)[Trending](/trending)[Changelog](/changelog)[Analyze](/analyze)
