codezero/utilities
最新稳定版本:1.1.0
Composer 安装命令:
composer require codezero/utilities
包简介
All-round utilities library
关键字:
README 文档
README
This package includes some all-round methods that might be useful in many projects.
Installation
Download this package or install it through Composer:
"require": {
"codezero/utilities": "1.*"
}
URL Helper
Join slugs into a well formatted URL
$urlParts = [
'http://www.mysite.com/',
'/subdir',
'someOtherDir/',
'/somepage.php'
];
use CodeZero\Utilities\UrlHelper;
$urlHelper = new UrlHelper();
$url = $urlHelper->joinSlugs($urlParts);
Returns:
http://www.mysite.com/subdir/someOtherDir/somepage.php
This will make sure there is only one slash between each slug.
That's all for now...
统计信息
- 总下载量: 40.13k
- 月度下载量: 0
- 日度下载量: 0
- 收藏数: 0
- 点击次数: 0
- 依赖项目数: 1
- 推荐数: 0
其他信息
- 授权协议: MIT
- 更新时间: 2014-08-26