Skip to content
master
Switch branches/tags
Go to file
Code

Latest commit

 

Git stats

Files

Permalink
Failed to load latest commit information.
Type
Name
Latest commit message
Commit time
 
 
 
 
 
 

README.md

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

About

PHP根据url获取顶级域名

Resources

License

Packages

No packages published

Languages