Download the PHP package webclient/fake-http-client without Composer
On this page you can find all versions of the php package webclient/fake-http-client. It is possible to download/install these versions without Composer. Possible dependencies are resolved automatically.
Please rate this library. Is it a good library?
Informations about the package fake-http-client
webclient/fake-http-client
Mock for PSR-18 HTTP client
Install
Add package to project
Set autoload
Using
Handlers
SpecHandler
This package provides universal handler \Webclient\Fake\Handler\SpecHandler\SpecHandler
and builder \Webclient\Fake\Handler\SpecHandler\SpecHandlerBuilder
.
With it, you can customize the client for almost any need.
SimpleRoutingHandler
This package provides simple routing.
Nuance
If you pass the \Psr\Http\Message\ServerRequestInterface
object to client and want the handler to receive it as is,
add the attribute \Webclient\Fake\Client::NO_REPLACE_ATTRIBUTE
:
All versions of fake-http-client with dependencies
PHP Build Version
Package Version
Requires
php Version
^7.4 || ^8.0
ext-json Version *
ext-mbstring Version *
psr/http-client Version ^1.0
psr/http-message Version ^1.0
psr/http-factory Version ^1.0
psr/http-server-handler Version ^1.0
ext-json Version *
ext-mbstring Version *
psr/http-client Version ^1.0
psr/http-message Version ^1.0
psr/http-factory Version ^1.0
psr/http-server-handler Version ^1.0
The package webclient/fake-http-client contains the following files
Loading the files please wait ....