Skip to content
This repository was archived by the owner on Jan 18, 2020. It is now read-only.

codezero-be/utilities

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

5 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

CodeZero Utilities

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

About

🚫[ABANDONED] All-round utilities library

Resources

License

Stars

Watchers

Forks

Packages

No packages published

Languages