Reference implementations of the RequestInterop interfaces.

Installs: 3

Dependents: 0

Suggesters: 0

Security: 0

Stars: 0

Watchers: 2

Forks: 0

Open Issues: 0

pkg:composer/request-interop/impl

1.0.0-alpha1 2025-07-15 13:15 UTC

This package is auto-updated.

Last update: 2025-12-05 03:10:23 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);