src/Library/Helper/Text.php
public static function slugify($string = '')
    {
        $string = preg_replace('~[^\\pL\d]+~u', '-', $string); 
        if (function_exists('iconv')) {
            $string = iconv('utf-8', 'us-ascii//TRANSLIT', $string);
        } 
        $string = preg_replace('~[^-\w]+~', '', strtolower(trim($string, '-')));
        return $string;
    }
public static function slugify($string = '')
    {
        $string = preg_replace('~[^\\pL\d]+~u', '-', $string); 
        if (function_exists('iconv')) {
            $string = iconv('utf-8', 'us-ascii//TRANSLIT', $string);
        } 
        $string = preg_replace('~[^-\w]+~', '', strtolower(trim($string, '-')));
        return $string;
    }
public static function slugify ( $ string = '' ) { $ string = preg_replace ( '~[^\\pL\d]+~u' , '-' , $ string ) ; if ( function_exists ( 'iconv' ) ) { $ string = iconv ( 'utf-8' , 'us-ascii//TRANSLIT' , $ string ) ; } $ string = preg_replace ( '~[^-\w]+~' , '' , strtolower ( trim ( $ string , '-' ) ) ) ; return $ string ; }
Get a slugified string

By Miguel Santirso (http://sourcecookbook.com/en/recipes/8/function-to-slugify-strings-in-php)

@param   string $string The string to format
@return  string
Get a slugified string