# phpgetdomain **Repository Path**: LeonRust/domain ## Basic Information - **Project Name**: phpgetdomain - **Description**: PHP根据url获取顶级域名 - **Primary Language**: PHP - **License**: MIT - **Default Branch**: master - **Homepage**: None - **GVP Project**: No ## Statistics - **Stars**: 2 - **Forks**: 1 - **Created**: 2016-01-06 - **Last Updated**: 2021-04-02 ## Categories & Tags **Categories**: Uncategorized **Tags**: None ## README # 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); }