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
Requires
- php: 7.3 - 8.0
- alcamo/exception: ^0.1
- guzzlehttp/psr7: ^2
Requires (Dev)
- phpunit/phpunit: ^9.5
- squizlabs/php_codesniffer: 3.*
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.