# The Uri\Rfc3986\Uri class

(PHP 8 >= 8.5.0)

## Einführung

## Klassenbeschreibung

namespace Uri\Rfc3986;
final readonly class Uri {
/* Methoden */
public function __construct(string `$uri`, ?Uri\Rfc3986\Uri `$baseUrl` = `null`)
public function __debugInfo(): array
public function equals(Uri\Rfc3986\Uri `$uri`, Uri\UriComparisonMode `$comparisonMode` = `Uri\UriComparisonMode::ExcludeFragment`): bool
public function getFragment(): ?string
public function getHost(): ?string
public function getPassword(): ?string
public function getPath(): string
public function getPort(): ?int
public function getQuery(): ?string
public function getRawFragment(): ?string
public function getRawHost(): ?string
public function getRawPassword(): ?string
public function getRawPath(): string
public function getRawQuery(): ?string
public function getRawScheme(): ?string
public function getRawUserInfo(): ?string
public function getRawUsername(): ?string
public function getScheme(): ?string
public function getUserInfo(): ?string
public function getUsername(): ?string
public static function parse(string `$uri`, ?Uri\Rfc3986\Uri `$baseUrl` = `null`): ?static
public function resolve(string `$uri`): static
public function __serialize(): array
public function toRawString(): string
public function toString(): string
public function __unserialize(array `$data`): void
public function withFragment(?string `$fragment`): static
public function withHost(?string `$host`): static
public function withPath(string `$path`): static
public function withPort(?int `$port`): static
public function withQuery(?string `$query`): static
public function withScheme(?string `$scheme`): static
public function withUserInfo(#[\SensitiveParameter]?string `$userinfo`): static
}

## Inhaltsverzeichnis

- Uri\Rfc3986\Uri::__construct — Construct the Uri object
- Uri\Rfc3986\Uri::__debugInfo — Return the internal state of the URI
- Uri\Rfc3986\Uri::equals — Check if two URIs are equivalent
- Uri\Rfc3986\Uri::getFragment — Retrieve the normalized fragment component
- Uri\Rfc3986\Uri::getHost — Retrieve the normalized host component
- Uri\Rfc3986\Uri::getPassword — Retrieve the normalized password
- Uri\Rfc3986\Uri::getPath — Retrieve the normalized path component
- Uri\Rfc3986\Uri::getPort — Retrieve the normalized port component
- Uri\Rfc3986\Uri::getQuery — Retrieve the normalized query component
- Uri\Rfc3986\Uri::getRawFragment — Retrieve the raw fragment component
- Uri\Rfc3986\Uri::getRawHost — Retrieve the raw host component
- Uri\Rfc3986\Uri::getRawPassword — Retrieve the raw password
- Uri\Rfc3986\Uri::getRawPath — Retrieve the raw path component
- Uri\Rfc3986\Uri::getRawQuery — Retrieve the raw query component
- Uri\Rfc3986\Uri::getRawScheme — Retrieve the raw scheme component
- Uri\Rfc3986\Uri::getRawUserInfo — Retrieve the raw userinfo component
- Uri\Rfc3986\Uri::getRawUsername — Retrieve the raw username
- Uri\Rfc3986\Uri::getScheme — Retrieve the normalized scheme component
- Uri\Rfc3986\Uri::getUserInfo — Retrieve the normalized userinfo component
- Uri\Rfc3986\Uri::getUsername — Retrieve the normalized username
- Uri\Rfc3986\Uri::parse — Parse a URI
- Uri\Rfc3986\Uri::resolve — Resolve a URI with the current object as the base URL
- Uri\Rfc3986\Uri::__serialize — Serialize the Uri object
- Uri\Rfc3986\Uri::toRawString — Recompose the raw URI
- Uri\Rfc3986\Uri::toString — Recompose the normalized URI
- Uri\Rfc3986\Uri::__unserialize — Deserialize the data parameter into a Uri object
- Uri\Rfc3986\Uri::withFragment — Modify the fragment component
- Uri\Rfc3986\Uri::withHost — Modify the host component
- Uri\Rfc3986\Uri::withPath — Modify the path component
- Uri\Rfc3986\Uri::withPort — Modify the port component
- Uri\Rfc3986\Uri::withQuery — Modify the query component
- Uri\Rfc3986\Uri::withScheme — Modify the scheme component
- Uri\Rfc3986\Uri::withUserInfo — Modify the userinfo component

`↑` and `↓` to navigate • `Enter` to select • `Esc` to close • `/` to open