Skip to content

webpatser/laravel-sanitize

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

16 Commits
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Laravel Sanitize Build Status

Laravel package to sanitize a string for use in URL's

Installation

Add webpatser/laravel-sanitize to composer.json.

"webpatser/laravel-sanitize": "dev-master"

Run composer update to get the latest version of Sanitize.

Edit app/config/app.php and add the alias

'aliases' => array(
    'Sanitize' => 'Webpatser\Sanitize\Sanitize',
)

Usage

Sanitize::string('Sanitize me please!'); // sanitize-me-please

Notes

It uses the PHP Normalizer class and does some extra magic, and wraps it in the Laravel 4 grand scheme of things.

About

No description, website, or topics provided.

Resources

Stars

Watchers

Forks

Packages

No packages published

Languages