djthossi/url-parser
Composer 安装命令:
composer require djthossi/url-parser
包简介
A small lean self written URL parser which parsed a given URL into a OOP version
README 文档
README
This URL parser works currenlty only for http and https. If you required // or other protocols, feel free to add them.
How to install
You have several options to install this package
Composer
composer require djthossi/url-parser
Git
git clone https://github.com/DjThossi/url-parser.git
Download
https://github.com/DjThossi/url-parser/archive/master.zip
Example
use DjThossi\UrlParser\ParsedUrl; use DjThossi\UrlParser\UrlParser; class SomeClass { public function parseUrl(string $url): ParsedUrl { $urlParser = new UrlParser(); return $urlParser->parseUrl($url); } }
统计信息
- 总下载量: 10
- 月度下载量: 0
- 日度下载量: 0
- 收藏数: 0
- 点击次数: 1
- 依赖项目数: 0
- 推荐数: 0
其他信息
- 授权协议: MIT
- 更新时间: 2019-05-06