2017 © Pedro Peláez
 

library guzzle-fixture-handler

Fixture handler for Guzzle 6

image

swisnl/guzzle-fixture-handler

Fixture handler for Guzzle 6

  • Monday, April 23, 2018
  • by swisnl
  • Repository
  • 2 Watchers
  • 0 Stars
  • 453 Installations
  • PHP
  • 0 Dependents
  • 0 Suggesters
  • 0 Forks
  • 0 Open issues
  • 3 Versions
  • 864 % Grown

The README.md

Fixture handler for Guzzle 6+

PHP from Packagist Latest Version on Packagist Software License Buy us a tree Build Status Scrutinizer Coverage Scrutinizer Code Quality Made by SWIS, (*1)

This is a fixture handler for Guzzle 6+ and is meant for testing purposes. It is a temporary wrapper around swisnl/php-http-fixture-client for packages that do not support PSR-18: HTTP Client yet, but require Guzzle 6+ explicitly., (*2)

Install

``` bash $ composer require --dev swisnl/guzzle-fixture-handler, (*3)


## Usage ``` php // Create client with handler $responseBuilder = new \Swis\Guzzle\Fixture\ResponseBuilder('/path/to/fixtures'); $handler = new \Swis\Guzzle\Fixture\Handler($responseBuilder); $handlerStack = \GuzzleHttp\HandlerStack::create($handler); $client = new \GuzzleHttp\Client(['handler' => $handlerStack]); // Send request $response = $client->send(new Request(...));

Fixture mapping

As this is only a wrapper, please see the documentation of swisnl/php-http-fixture-client for more information about using the fixtures., (*4)

Change log

Please see CHANGELOG for more information on what has changed recently., (*5)

Testing

bash $ composer test, (*6)

Contributing

Please see CONTRIBUTING and CODE_OF_CONDUCT for details., (*7)

Security

If you discover any security related issues, please email security@swis.nl instead of using the issue tracker., (*8)

License

The MIT License (MIT). Please see License File for more information., (*9)

This package is Treeware. If you use it in production, then we ask that you buy the world a tree to thank us for our work. By contributing to the Treeware forest you’ll be creating employment for local families and restoring wildlife habitats., (*10)

SWIS :heart: Open Source

SWIS is a web agency from Leiden, the Netherlands. We love working with open source software., (*11)

The Versions

23/04 2018

dev-master

9999999-dev https://github.com/swisnl/guzzle-fixture-handler

Fixture handler for Guzzle 6

  Sources   Download

MIT

The Requires

 

The Development Requires

psr-7 client guzzle fixture swisnl swis

09/02 2018

1.0.1

1.0.1.0 https://github.com/swisnl/guzzle-fixture-handler

Fixture handler for Guzzle 6

  Sources   Download

MIT

The Requires

 

The Development Requires

psr-7 client guzzle fixture swisnl swis

09/02 2018

1.0.0

1.0.0.0 https://github.com/swisnl/guzzle-fixture-handler

Fixture handler for Guzzle 6

  Sources   Download

MIT

The Requires

 

The Development Requires

psr-7 client guzzle fixture swisnl swis