alcamo/uri

PSR7 URI library with particular support for file: URIs

Installs: 102

Dependents: 2

Suggesters: 0

Security: 0

Stars: 0

Watchers: 1

Forks: 0

Open Issues: 0

pkg:composer/alcamo/uri

0.2.0 2025-10-08 16:49 UTC

This package is auto-updated.

Last update: 2025-10-08 16:49:20 UTC


README

Class Uri

Currently identical to the GuzzleHttp implementation. This might change in the future.

Class UriNormalizer

Built on top of GuzzleHttp's UriNormalizer with the additional possibility to apply realpath() on local file: URIs.

This makes it easy to check whether two file: URIs refer to the same physical local file.

Class FileUriFactory

Helper class that converts back and forth between file: URIs and local file paths.

Class FsPath2FileUrlIterator

Creates an iterator for file: URIs from an iterator of local paths.

Class UriFromServerEnvFactory

Creates an URI from $_SERVER.

Class UriFromCurieFactory

Provides various methods to create URIs from CURIEs.