request-interop / impl
Reference implementations of the RequestInterop interfaces.
1.0.0
2026-04-08 04:11 UTC
Requires
- php: >=8.4
- request-interop/interface: ^1.0
- upload-interop/impl: ^1.0
- uri-interop/impl: ^1.0
Requires (Dev)
- pds/composer-script-names: ^1.0
- pds/skeleton: ^1.0
- phpstan/phpstan: ^2.0
- phpunit/phpunit: ^11.0
- pmjones/php-styler: 0.x@dev
This package is auto-updated.
Last update: 2026-04-08 04:11:38 UTC
README
There are two reference implementations: one is readonly, and cannot be modified after construction; the other is mutable.
Readonly
use RequestInterop\Impl\Readonly\ReadonlyRequest; use RequestInterop\Impl\Readonly\ReadonlyRequestFactory; $factory = new ReadonlyRequestFactory(); $request = $factory->newRequest(); assert($request instanceof ReadonlyRequest::class);
Mutable
use RequestInterop\Impl\Mutable\MutableRequest; use RequestInterop\Impl\Mutable\MutableRequestFactory; $factory = new MutableRequestFactory(); $request = $factory->newRequest(); assert($request instanceof MutableRequest::class);