Utility functions:
Creates a slug for the passed string taking into account international characters.
use Phalcon\Utils\Slug as PhSlug;
// returns: messd-up-text-just-to-stress-test-our-ltl-clean-url-function
echo PhSlug::generate(
"Mess'd up --text- just (to) stress /test/ ?our! `ltl` \\clean\\ url fun.ction!?->"
);
// returns: perche-l-erba-e-verde
echo PhSlug::generate("Perché l'erba è verde?", "'"); // Italian
The extension iconv must be installed in PHP.
Matteo Spinelli (http://cubiq.org) php-clean-url-generator