PHPackages                             qwddz/domain-extractor - 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. qwddz/domain-extractor

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

qwddz/domain-extractor
======================

0.0.3(4y ago)012.3k↓50%Apache-2.0PHPPHP ^7.3 || ^8.0

Since Mar 8Pushed 3y ago1 watchersCompare

[ Source](https://github.com/qwddz/domain-extractor)[ Packagist](https://packagist.org/packages/qwddz/domain-extractor)[ RSS](/packages/qwddz-domain-extractor/feed)WikiDiscussions main Synced 1mo ago

READMEChangelog (3)Dependencies (4)Versions (4)Used By (0)

Install
-------

[](#install)

Via Composer

```
$ composer require qwddz/domain-extractor
```

Usage
-----

[](#usage)

```
$extract = new Extract();

# For domain 'gist.github.com'

$result = $extract->parse('shop.github.com');
$result->getFullHost(); // will return (string) 'shop.github.com'
$result->getRegistrableDomain(); // will return (string) 'github.com'
$result->isValidDomain(); // will return (bool) true
$result->isIp(); // will return (bool) false

# For IP '127.0.0.1'

$result = $extract->parse('192.168.0.1');
$result->getFullHost(); // will return (string) '192.168.0.1'
$result->getRegistrableDomain(); // will return null
$result->isValidDomain(); // will return (bool) false
$result->isIp(); // will return (bool) true
```

###  Health Score

26

—

LowBetter than 43% of packages

Maintenance20

Infrequent updates — may be unmaintained

Popularity23

Limited adoption so far

Community4

Small or concentrated contributor base

Maturity46

Maturing project, gaining track record

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 ~0 days

Total

3

Last Release

1531d ago

### Community

Maintainers

![](https://avatars.githubusercontent.com/u/11944357?v=4)[Dmitry](/maintainers/qwddz)[@qwddz](https://github.com/qwddz)

###  Code Quality

TestsPHPUnit

Code StylePHP\_CodeSniffer

### Embed Badge

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

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

###  Alternatives

[yourls/yourls

Your Own URL Shortener

11.9k27.7k1](/packages/yourls-yourls)[hirethunk/verbs

An event sourcing package that feels nice.

513162.9k6](/packages/hirethunk-verbs)[esperecyan/url

Makes the algorithms and APIs defined by URL Standard (replaces RFC 3986 and RFC 3987) available on PHP. / URL Standard (RFC 3986、RFC 3987 を置き換える Web 標準仕様) で定義されているアルゴリズム、および API を PHP から利用できるようにします。

158.3k2](/packages/esperecyan-url)[open-web-analytics/owa-php-sdk

The open source analytics framework.

213.0k](/packages/open-web-analytics-owa-php-sdk)

PHPackages © 2026

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