- 授权协议: MIT
- 开发语言: PHP
- 操作系统: 跨平台
- 软件首页: https://git.oschina.net/php360/domain
- 软件文档: https://git.oschina.net/php360/domain/blob/master/README.md?dir=0&filepath=README.md&oid=fcf229cb3a1dc39933d46e16d873b84837d470ad&sha=86bcf3e839cef098116d89e84a7a2ed27f7d868c
软件介绍
phpgetdomain
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); }