Interoperable URI interfaces for PHP 8.4+.
// momentum
// why it's here
- Active: last commit today
// how to help
// readme
Uri-Interop Standard Interface Package
Uri-Interop provides an interoperable package of standard interfaces for working with URIs in PHP 8.4 or later. It reflects, refines, and reconciles the common practices identified within [several pre-existing projects][README-RESEARCH.md].
The key words “MUST”, “MUST NOT”, “REQUIRED”, “SHALL”, “SHALL NOT”, “SHOULD”, “SHOULD NOT”, “RECOMMENDED”, “MAY”, and “OPTIONAL” in this document are to be interpreted as described in [BCP 14][] ([RFC 2119][], [RFC 8174][]).
This package attempts to adhere to the Package Development Standards approach to naming and versioning.
Interfaces
This package defines the following interfaces:
-
[UriStruct][] affords reading of URI component values and recomposing them into a string.
-
[MutableUriStruct][] extends [UriStruct][] to afford direct modification of component values via property set hooks.
-
[ImmutableUriStruct][] extends [UriStruct][] to afford immutable modification of component values via “with” methods.
-
[UriStructFactory][] affords creating a new [UriStruct][] instance from parsed component values.