public static function url(string $path): string
    {
        return self::SCHEME . '://' . join(
                '/',
                array_map(
                        'rawurlencode',    // ensure singe path parts are correctly urlencoded
                        explode(
                                '/',
                                str_replace('\\', '/', $path)  // ensure correct directory separator
                        )
                )
        );
    }
public static function url(string $path): string
    {
        return self::SCHEME . '://' . join(
                '/',
                array_map(
                        'rawurlencode',    // ensure singe path parts are correctly urlencoded
                        explode(
                                '/',
                                str_replace('\\', '/', $path)  // ensure correct directory separator
                        )
                )
        );
    }
public static function url ( string $ path ) : string { return self :: SCHEME . '://' . join ( '/' , array_map ( 'rawurlencode' , // ensure singe path parts are correctly urlencoded explode ( '/' , str_replace ( '\\' , '/' , $ path ) // ensure correct directory separator ) ) ) ; }
prepends the scheme to the given URL

@param   string  $path  path to translate to vfsStream url
@return  string
prepends the scheme to the given URL