public static function createSlugFromCamelCase($string, $allowSlashes = false)
    {
        $string = trim(preg_replace('/(([A-Z]|[0-9])[^A-Z])/',' $1',$string));

        return SlugUtils::createSlug($string,$allowSlashes);
    }
public static function createSlugFromCamelCase($string, $allowSlashes = false)
    {
        $string = trim(preg_replace('/(([A-Z]|[0-9])[^A-Z])/',' $1',$string));

        return SlugUtils::createSlug($string,$allowSlashes);
    }
public static function createSlugFromCamelCase ( $ string , $ allowSlashes = false ) { $ string = trim ( preg_replace ( '/(([A-Z]|[0-9])[^A-Z])/' , ' $1' , $ string ) ) ; return SlugUtils :: createSlug ( $ string , $ allowSlashes ) ; }
Creates a slug from the camel case text given. Adds space in between words starting with capital letters and acronyms.

@param string  $string       A bit of camel case text that we will generate our slug from.
@param boolean $allowSlashes If set to false, any slashes will be removed from the slug.
Default: false

@return string Our sluggified version of the {@link $string} param
Creates a slug from the camel case text given . Adds space in between words starting with capital letters and acronyms .