Download the PHP package jasonbenett/codeception-module-wiremock without Composer

On this page you can find all versions of the php package jasonbenett/codeception-module-wiremock. It is possible to download/install these versions without Composer. Possible dependencies are resolved automatically.

FAQ

After the download, you have to make one include require_once('vendor/autoload.php');. After that you have to import the classes with use statements.

Example:
If you use only one package a project is not needed. But if you use more then one package, without a project it is not possible to import the classes with use statements.

In general, it is recommended to use always a project to download your libraries. In an application normally there is more than one library needed.
Some PHP packages are not free to download and because of that hosted in private repositories. In this case some credentials are needed to access such packages. Please use the auth.json textarea to insert credentials, if a package is coming from a private repository. You can look here for more information.

  • Some hosting areas are not accessible by a terminal or SSH. Then it is not possible to use Composer.
  • To use Composer is sometimes complicated. Especially for beginners.
  • Composer needs much resources. Sometimes they are not available on a simple webspace.
  • If you are using private repositories you don't need to share your credentials. You can set up everything on our site and then you provide a simple download link to your team member.
  • Simplify your Composer build process. Use our own command line tool to download the vendor folder as binary. This makes your build process faster and you don't need to expose your credentials for private repositories.
Please rate this library. Is it a good library?

Informations about the package codeception-module-wiremock

Codeception Module WireMock

CI codecov PHPStan Level PHP Version Codeception

A Codeception module for WireMock integration, allowing you to mock HTTP services in your functional tests.

Features

Requirements

Installation

Install via Composer:

This module depends on PSR-18 (HTTP Client) and PSR-17 (HTTP Factories) interfaces. You'll need to install a compatible implementation:

Using Guzzle (recommended):

Using Symfony HttpClient:

Other PSR-18/PSR-17 implementations work as well.

Architecture

This module follows PSR-18 (HTTP Client) and PSR-17 (HTTP Factories) standards, providing true dependency inversion:

This approach allows you to:

Quick Start

1. Start WireMock Server

Using Docker (recommended):

2. Configure Codeception

Add the WireMock module to your codeception.yml or suite configuration:

3. Write Your First Test

Configuration Options

Basic Configuration (Auto-Discovery)

When using Guzzle, the module can auto-create PSR client instances:

Advanced Configuration (Custom PSR Clients)

For full control and dependency inversion, provide your own PSR-18/PSR-17 implementations:

All Configuration Options

Note: If httpClient, requestFactory, or streamFactory are not provided, the module will attempt to auto-create Guzzle instances if available.

Available Methods

Setup Methods (have*)

haveHttpStubFor

Create an HTTP stub for any HTTP method with advanced request matching.

Examples:

Assertion Methods (see / dontSee)

seeHttpRequest

Verify that an HTTP request was made.

Examples:

dontSeeHttpRequest

Verify that an HTTP request was NOT made.

Example:

seeRequestCount

Assert exact number of requests matching criteria.

Examples:

Data Retrieval Methods (grab*)

grabRequestCount

Get count of requests matching criteria.

Example:

grabAllRequests

Retrieve all recorded requests.

Example:

grabUnmatchedRequests

Get requests that didn't match any stub (returned 404).

Example:

Action Methods (send*)

sendReset

Reset WireMock to default state (preserves file-based stubs if configured).

sendClearRequests

Clear the request journal without affecting stub mappings.

Request Matching Patterns

WireMock supports powerful request matching. Here are common patterns:

URL Matching

Body Matching

Header Matching

Complete Example

Local Development

Using Docker

You can run WireMock using Docker:

Running Tests

Debugging

Near-Miss Analysis

When a verification fails, the module automatically includes near-miss analysis in the error message:

Check Unmatched Requests

View All Requests

Quality Assurance

This project maintains high code quality standards with comprehensive automated checks:

Continuous Integration

Every push and pull request is automatically tested via GitHub Actions across multiple PHP versions:

Local Development

Run all quality checks before submitting:

Code Quality Metrics

Contributing

Contributions are welcome! Please see CONTRIBUTING.md for detailed guidelines including:

License

MIT

Links


All versions of codeception-module-wiremock with dependencies

PHP Build Version
Package Version
Requires php Version ^8.2
ext-json Version *
codeception/codeception Version ^5.3
psr/http-client Version ^1.0
psr/http-factory Version ^1.0
psr/http-message Version ^1.1 || ^2.0
Composer command for our command line client (download client) This client runs in each environment. You don't need a specific PHP version etc. The first 20 API calls are free. Standard composer command

The package jasonbenett/codeception-module-wiremock contains the following files

Loading the files please wait ...