mini\Http\Message\Uri class

Documentation

Class simplifies working with uris

Inheritance

Implements: JsonSerializable Psr\Http\Message\UriInterface Stringable

Uses Traits: mini\Http\Message\UriTrait

Constants (1)

Name Value
SCHEME_PORTS array ( 'ftp' => 21, 'ssh' => 22, 'telnet' => 23, 'smtp' => 25, 'gopher' => 70, 'finger' => 79, 'http' => 80, 'rtelnet' => 107, 'pop3' => 110, 'sftp' => 115, 'nntp' => 119, 'ntp' => 123, 'imap' => 143, 'snmp' => 161, 'irc' => 194, 'ldap' => 389, 'smtpe' => 420, 'https' => 443, 'ftps' => 990, 'imaps' => 993, 'pop3s' => 995, 'wins' => 1512, 'rtmp' => 1935, )

Properties (1)

protected string $uri

Methods (39)

Documentation missing

Documentation missing

Resolve the next URL by using this as the base URL

Configure the UriTrait

Get the scheme of the url

Get the hostname of the url

Get the user of the url

Get the password of the url

Parse out the value from the query string and return it.

Documentation missing

Documentation missing

Documentation missing

Returns the path section of the URL up until the query parameter and fragment

Get the entire query part of the url (from the ? until the fragment #)

Get the url fragment.

Get the url fragment.

Get the url fragment.

Get the url fragment.

Get the url fragment.

Set the path

Get the url fragment.

Get the url fragment.

When echoing this class, the URL will be displayed.

Documentation missing

Set the hostname of the url

Set the scheme of the url (http/https/rtmp etc)

Set the user info of the url

Set the port of the url (http/https/rtmp etc)

Set the path of the url

Set the fragment part of the query (after the #)

Remove the fragment part of the query (after the #). This removes the entire fragment.

Set the entire query (from the ? until the fragment #)

Add or replace a part of the query string

Remove a parameter from the query string

Removes all parameters from the query string

Uses the multibyte parse_str version if it exists.

Builds a complete URL from a parsed URL, according to parse_url().

Dirname part of the path

Remove any /./ and resolve any /../ components of a path.

Source

src/Http/Message/Uri.php:11-65