ngophuongtuan/url_helper
Composer 安装命令:
composer require ngophuongtuan/url_helper
包简介
url helper php
README 文档
README
$ composer require ngophuongtuan/url_helper
Usage
Use namespace Acme\urlHelper to include urlHelper class.
use Acme\urlHelper; $url= new urlHelper();
Check valid url.
$url->check($url); //return true if the $url is valid
Connect a url and a path
$url->connect("$url", "$path"); //connect the $url with $path to a new string url
Get info of an url.
$info = $url->getInfo("$url"); $protocol = $info['protocol']; //get the protocol $port = $info['port']; //get the port $domain = $info['domain']; //get the domain
统计信息
- 总下载量: 13
- 月度下载量: 0
- 日度下载量: 0
- 收藏数: 0
- 点击次数: 0
- 依赖项目数: 0
- 推荐数: 0
其他信息
- 授权协议: Unknown
- 更新时间: 2017-10-31