承接 codezero/utilities 相关项目开发

从需求分析到上线部署,全程专人跟进,保证项目质量与交付效率

邮箱:yvsm@zunyunkeji.com | QQ:316430983 | 微信:yvsm316

codezero/utilities

最新稳定版本:1.1.0

Composer 安装命令:

composer require codezero/utilities

包简介

All-round utilities library

README 文档

README

Build Status Latest Stable Version Total Downloads License

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...

Analytics

统计信息

  • 总下载量: 40.13k
  • 月度下载量: 0
  • 日度下载量: 0
  • 收藏数: 0
  • 点击次数: 0
  • 依赖项目数: 1
  • 推荐数: 0

GitHub 信息

  • Stars: 0
  • Watchers: 2
  • Forks: 0
  • 开发语言: PHP

其他信息

  • 授权协议: MIT
  • 更新时间: 2014-08-26