src/Inflector.php
public static function parameterize($string, $replacement = '-')
    {
        $transliterated = static::transliterate($string);
        return strtolower(static::slug($string, $replacement));
    }
public static function parameterize($string, $replacement = '-')
    {
        $transliterated = static::transliterate($string);
        return strtolower(static::slug($string, $replacement));
    }
public static function parameterize ( $ string , $ replacement = '-' ) { $ transliterated = static :: transliterate ( $ string ) ; return strtolower ( static :: slug ( $ string , $ replacement ) ) ; }
Returns a lowercased string with all spaces converted to given replacement and non word characters removed.
Maps special characters to ASCII using `transliterator_transliterate`.

@param  string $string      An arbitrary string to convert.
@param  string $replacement The replacement to use for spaces.
@return string              The converted lowercased string.
Returns a lowercased string with all spaces converted to given replacement and non word characters removed . Maps special characters to ASCII using transliterator_transliterate .