gump.class.php
protected function filter_slug($value, $params = null)
    {
        $delimiter = '-';
        $slug = strtolower(trim(preg_replace('/[\s-]+/', $delimiter, preg_replace('/[^A-Za-z0-9-]+/', $delimiter, preg_replace('/[&]/', 'and', preg_replace('/[\']/', '', iconv('UTF-8', 'ASCII//TRANSLIT', $str))))), $delimiter));
        return $slug;
    }
protected function filter_slug($value, $params = null)
    {
        $delimiter = '-';
        $slug = strtolower(trim(preg_replace('/[\s-]+/', $delimiter, preg_replace('/[^A-Za-z0-9-]+/', $delimiter, preg_replace('/[&]/', 'and', preg_replace('/[\']/', '', iconv('UTF-8', 'ASCII//TRANSLIT', $str))))), $delimiter));
        return $slug;
    }
protected function filter_slug ( $ value , $ params = null ) { $ delimiter = '-' ; $ slug = strtolower ( trim ( preg_replace ( '/[\s-]+/' , $ delimiter , preg_replace ( '/[^A-Za-z0-9-]+/' , $ delimiter , preg_replace ( '/[&]/' , 'and' , preg_replace ( '/[\']/' , '' , iconv ( 'UTF-8' , 'ASCII//TRANSLIT' , $ str ) ) ) ) ) , $ delimiter ) ) ; return $ slug ; }
Converts value to url-web-slugs.

Credit:
https://stackoverflow.com/questions/40641973/php-to-convert-string-to-slug
http://cubiq.org/the-perfect-php-clean-url-generator

@param string $value
@param array  $params

@return string
Converts value to url - web - slugs .