Laravel package to sanatize a string for use as URL's. It uses the PHP Normalizer class and fills whitespace with dashes.
Laravel package to sanitize a string for use in URL's
composer update to get the latest version of Sanitize.
app/config/app.php and add the
'aliases' => array( 'Sanitize' => 'Webpatser\Sanitize\Sanitize', )
Sanitize::string('Sanitize me please!'); // sanitize-me-please
It uses the PHP Normalizer class and does some extra magic, and wraps it in the Laravel 4 grand scheme of things.