src/StringUtils.php
public static function slug($string, $separator = '-', array $options = [])
    {
        if (!static::$slugify instanceof Slugify) {
            static::$slugify = Slugify::create($options);
        }

        return mb_strtolower(static::$slugify->slugify($string, $separator));
    }
public static function slug($string, $separator = '-', array $options = [])
    {
        if (!static::$slugify instanceof Slugify) {
            static::$slugify = Slugify::create($options);
        }

        return mb_strtolower(static::$slugify->slugify($string, $separator));
    }
public static function slug ( $ string , $ separator = '-' , array $ options = [ ] ) { if ( ! static :: $ slugify instanceof Slugify ) { static :: $ slugify = Slugify :: create ( $ options ) ; } return mb_strtolower ( static :: $ slugify -> slugify ( $ string , $ separator ) ) ; }
Creates url friendly string.

@param string $string    The input string.
@param string $separator The separator string.
@param array  $options

@return string
Creates url friendly string .