| Methods | 
	
			| 
					
	public
					static
					
				 | parse(
	string $uri,
	int $component = -1,
): ($component is -1 ? array{scheme?: string, host?: string, port?: int, user?: string, pass?: string, path?: string, query?: string, fragment?: string}|false : ($component is PHP_URL_PORT ? int|null|false : string|null|false))
		Parse a URI and return its components
	 
	Parse a URI and return its components This method replaces and must be used instead of {@see parse_url()} to
mitigate risks arising from the use of multiple URI parsers, which
include inconsistent behaviours and security vulnerabilities.Parameters
									
										| $component | PHP_URL_SCHEME,PHP_URL_HOST,PHP_URL_PORT,PHP_URL_USER,PHP_URL_PASS,PHP_URL_PATH,PHP_URL_QUERYorPHP_URL_FRAGMENTfor the given component, or-1for all components.
 |  Implemented by | # | 
	
			| 
					
	public
					
					
				 | getComponents(
	
): array{scheme?: string, host?: string, port?: int, user?: string, pass?: string, path?: string, query?: string, fragment?: string}
		Get the components of the URI
	 
	Get the components of the URIImplemented by | # | 
	
			| 
					
	public
					
					
				 | isRelativeReference(): bool
		Check if the URI is a relative reference
	 
	Check if the URI is a relative referenceImplemented by | # | 
	
			| 
					
	public
					
					
				 | normalise(): static
		Remove "/./" and "/../" segments from the path of the URI before
optionally applying scheme- and protocol-based…
	 
	Remove "/./" and "/../" segments from the path of the URI before
optionally applying scheme- and protocol-based normalisation It isn't necessary to call this method for scheme, host and
percent-encoded octet normalisation, which are always applied.Implemented by | # | 
	
			| 
					
	public
					
					
				 | follow(UriInterface|Stringable|string $reference): static
		Transform a URI reference to a target URI
	 
	Transform a URI reference to a target URI The base URI is the one on which this method is called.Implemented by | # | 
	
			| 
					
	public
					
					
				 | jsonSerialize(): string
		Get the string representation of the URI
	 
	Get the string representation of the URI | # |