jmsfwk/surlf
Composer 安装命令:
composer require jmsfwk/surlf
包简介
A library for formatting urls in the style of printf strings.
README 文档
README
Usage
use Jmsfwk\Surlf\Formatter; echo Formatter::format('%h/%p', 'http://example.com/a-path'); // example.com/a-path
Formats
The examples in the table below are based on the url http://example.com/a/b/c?d=e&f=g.
| Format character | Description | Example |
|---|---|---|
| s | URL scheme | http |
| h | Host | example.com |
| p | Path | a/b/c |
| q | Query | d=e&f=g |
| % | Literal % character | % |
统计信息
- 总下载量: 108
- 月度下载量: 0
- 日度下载量: 0
- 收藏数: 3
- 点击次数: 1
- 依赖项目数: 0
- 推荐数: 0
其他信息
- 授权协议: MIT
- 更新时间: 2018-11-15