public function toPascalCase(string $string): string
    {
        $string = Transliterator::urlize((string)$string);
        $string = str_replace('-', '', ucwords($string, '-'));

        return $string;
    }
public function toPascalCase(string $string): string
    {
        $string = Transliterator::urlize((string)$string);
        $string = str_replace('-', '', ucwords($string, '-'));

        return $string;
    }
public function toPascalCase ( string $ string ) : string { $ string = Transliterator :: urlize ( ( string ) $ string ) ; $ string = str_replace ( '-' , '' , ucwords ( $ string , '-' ) ) ; return $ string ; }
Helper to convert strings to PascalCase

@param string $string A string

@return string The converted string
Helper to convert strings to PascalCase