Watch 1 Star 1 Fork 0

技安-幻果 / phpgetdomainPHPMIT

Sign up for free
Explore and code with more than 2 million developers,Free private repositories !:)
Sign up
PHP根据url获取顶级域名 spread retract

Clone or download
Cancel
Notice: Creating folder will generate an empty file .keep, because not support in Git
Loading...
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 = new Domain();
    $host = $domain->getDomain('http://www.huanguosoft.com');
    var_dump($host);
}

Comments ( 1 )

You need to Sign in for post a comment

Help Search