2017 © Pedro Peláez
 

project phiremock

A mocker for HTTP and REST services

image

mcustiel/phiremock

A mocker for HTTP and REST services

  • Friday, July 20, 2018
  • by mcustiel
  • Repository
  • 7 Watchers
  • 78 Stars
  • 27,033 Installations
  • PHP
  • 2 Dependents
  • 0 Suggesters
  • 7 Forks
  • 0 Open issues
  • 35 Versions
  • 89 % Grown

The README.md

Phiremock Bundle

Phiremock is a mocker and stubber of HTTP services, it allows software developers to mock HTTP requests and setup responses to avoid calling real services during development, and is particulary useful during acceptance testing when expected http requests can be mocked and verified. Any HTTP service (i.e.: REST services) can be mocked and stubbed with Phiremock. Phiremock is heavily inspired by WireMock, but does not force you to have a java installation in your PHP development environment. The full functionality of Phiremock is detailed in the following list: * Allows to mock http request based in method, headers, url and body content. * Allows to match expectations using regexp patterns or equality. * REST interface to setup. * Stateful and stateless mocking. * Network latency simulation. * Priorizable expectations for cases in which more than one matches the request. If more than one expectation matches the request and no priorities were set, the first match is returned. * Allows to verify the amount of times a request was done. * Allows to load default expectations from json files in a directory tree. * Proxy requests to another URL as they are received. * Client with fluent interface to configure Phiremock. * Integration to codeception through phiremock-codeception-extension and phiremock-codeception-module. * Fill the response body using data from the request., (*1)

Latest Stable Version Monthly Downloads, (*2)

Note: In version 2 Phiremock has separated libraries for the server and the client. This repository became the bundle for both libraries., (*3)

Installation

Composer:

This project is published in packagist, so you just need to add it as a dependency in your composer.json:, (*4)

    "require-dev": {
        "mcustiel/phiremock": "v2.0",
        "guzzlehttp/guzzle": "^6.0"
    }

See

  • Phiremock Server: https://github.com/mcustiel/phiremock-server
  • Phiremock Client: https://github.com/mcustiel/phiremock-client

Thanks to:

And everyone who submitted their Pull Requests., (*5)

The Versions

20/07 2018

dev-master

9999999-dev

A mocker for HTTP and REST services

  Sources   Download

GPL-3.0+ GPL-3.0-or-later

The Requires

 

The Development Requires

mock server http tests external acceptance

14/06 2018

dev-version-1.x

dev-version-1.x

A mocker for HTTP and REST services

  Sources   Download

GPL-3.0+ GPL-3.0-or-later

The Requires

 

The Development Requires

mock server http tests external acceptance

14/06 2018
14/06 2018

dev-issue-38

dev-issue-38

A mocker for HTTP and REST services

  Sources   Download

GPL-3.0-or-later

The Requires

 

The Development Requires

mock server http tests external acceptance

10/06 2018

dev-version-2.x

dev-version-2.x

A mocker for HTTP and REST services

  Sources   Download

GPL-3.0-or-later

The Requires

 

The Development Requires

mock server http tests external acceptance

10/06 2018
05/06 2018

dev-issue-36

dev-issue-36

A mocker for HTTP and REST services

  Sources   Download

GPL-3.0-or-later

The Requires

 

The Development Requires

mock server http tests external acceptance

27/01 2018
24/01 2018
31/12 2017
31/12 2017

dev-issue/30

dev-issue/30

A mocker for HTTP and REST services

  Sources   Download

GPL-3.0+

The Requires

 

The Development Requires

mock server http tests external acceptance

28/10 2017
06/10 2017
17/09 2017
08/08 2017
20/07 2017

dev-develop

dev-develop

A mocker for HTTP and REST services

  Sources   Download

GPL-3.0+

The Requires

 

The Development Requires

mock server http tests external acceptance

21/06 2017
15/04 2017
05/04 2017