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

ActiveAgile-lib[Utility &amp; Helpers](/categories/utility)

agile/domain
============

PHP check domain.

1.0(10y ago)6355[1 issues](https://github.com/huanguosoft/domain/issues)MITPHPPHP &gt;=5.3.2

Since Mar 17Pushed 9y ago1 watchersCompare

[ Source](https://github.com/huanguosoft/domain)[ Packagist](https://packagist.org/packages/agile/domain)[ Docs](http://www.huanguosoft.com)[ RSS](/packages/agile-domain/feed)WikiDiscussions master Synced 1mo ago

READMEChangelogDependenciesVersions (2)Used By (0)

domain
======

[](#domain)

PHP根据url获取顶级域名

\####加载

```
composer require 'agile/domain:~1.0'

或者在composer.json文件中添加
"require": {
    "agile/domain": "~1.0"
}

```

\####使用 use Agile\\Lib\\Domain\\Domain; public function index(Domain $domain) { $host = $domain-&gt;getDomain(''); var\_dump($host); }

###  Health Score

28

—

LowBetter than 54% of packages

Maintenance17

Infrequent updates — may be unmaintained

Popularity15

Limited adoption so far

Community12

Small or concentrated contributor base

Maturity58

Maturing project, gaining track record

 Bus Factor1

Top contributor holds 50% 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

Unknown

Total

1

Last Release

3706d ago

### Community

Maintainers

![](https://www.gravatar.com/avatar/686cf65e666fda86843175d468362bb08e7bb46d11147c38622984b0c5c7ccd6?d=identicon)[huanguosoft](/maintainers/huanguosoft)

---

Top Contributors

[![huanguosoft](https://avatars.githubusercontent.com/u/13173697?v=4)](https://github.com/huanguosoft "huanguosoft (2 commits)")[![LeonRust](https://avatars.githubusercontent.com/u/1485219?v=4)](https://github.com/LeonRust "LeonRust (2 commits)")

---

Tags

Agiledomain

### Embed Badge

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

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

###  Alternatives

[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)[bornfreee/tactician-domain-events-bundle

Bundle to integrate Tactician Domain Events library with Symfony project

10138.6k](/packages/bornfreee-tactician-domain-events-bundle)[michaldudek/subdomain-blacklist

Common words that your users shouldn't use when setting up accounts.

2816.0k](/packages/michaldudek-subdomain-blacklist)[somnambulist/collection

Collection implementation with no dependencies.

1153.8k9](/packages/somnambulist-collection)

PHPackages © 2026

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