agile/domain

This package is not installable via Composer 1.x, please make sure you upgrade to Composer 2+. Read more about our Composer 1.x deprecation policy.

PHP check domain.

1.0 2016-03-17 02:54 UTC

This package is auto-updated.

Last update: 2021-07-29 01:04:16 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); }