agile/domain

PHP check domain.

Maintainers

Package info

github.com/huanguosoft/domain

Homepage

Type:agile-lib

pkg:composer/agile/domain

Statistics

Installs: 35

Dependents: 0

Suggesters: 0

Stars: 6

Open Issues: 1

1.0 2016-03-17 02:54 UTC

This package is auto-updated.

Last update: 2026-03-01 00:21:46 UTC


README

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->getDomain('http://www.huanguosoft.com'); var_dump($host); }