Iri final class
Minn\Feed\Iri · public/minn/src/Minn/Feed/Iri.php · 109 lines
URLs in feeds: a reference resolved against its base (RFC 3986), then normalized the way the reference prints them: scheme and host in lower case, the default port dropped, dot segments removed, and every byte a URL may not carry (spaces, angle brackets, non-ASCII) percent-encoded.
Constants and properties
| private | DEFAULT_PORTS = array ( 'http' => 80, 'https' => 443, 'ftp' => 21, ) |
Public
Internals 5
Private and protected methods: how the class does its work. Not a contract; they change whenever the code is tidied.
| private | split(string $url): array# | @return array{scheme: ?string, authority: ?string, path: string, query: ?string, fragment: ?string} |
| private | merge(array $base, string $path): string# | |
| private | normalize(array $parts): string# | |
| private | removeDots(string $path): string# | |
| private | encode(string $text, string $allowed): string# | Percent-encodes every byte outside the unreserved and sub-delimiter sets and the extra characters a component allows. |
Nothing matches.