PHPackages                             internations/http-mock - PHPackages - PHPackages  [Skip to content](#main-content)[PHPackages](/)[Directory](/)[Categories](/categories)[Trending](/trending)[Leaderboard](/leaderboard)[Changelog](/changelog)[Analyze](/analyze)[Collections](/collections)[Log in](/login)[Sign up](/register)

1. [Directory](/)
2. /
3. [Testing &amp; Quality](/categories/testing)
4. /
5. internations/http-mock

ActiveLibrary[Testing &amp; Quality](/categories/testing)

internations/http-mock
======================

Mock HTTP requests on the server side in your PHP unit tests

0.14.0(5y ago)393663.6k↓18.9%57[12 issues](https://github.com/InterNations/http-mock/issues)[4 PRs](https://github.com/InterNations/http-mock/pulls)20MITPHPPHP ~7.1CI failing

Since Oct 4Pushed 2y ago22 watchersCompare

[ Source](https://github.com/InterNations/http-mock)[ Packagist](https://packagist.org/packages/internations/http-mock)[ RSS](/packages/internations-http-mock/feed)WikiDiscussions main Synced yesterday

READMEChangelogDependencies (8)Versions (18)Used By (20)

HTTP Mock for PHP
=================

[](#http-mock-for-php)

[![Test](https://github.com/InterNations/http-mock/actions/workflows/test.yaml/badge.svg)](https://github.com/InterNations/http-mock/actions/workflows/test.yaml)

Mock HTTP requests on the server side in your PHP unit tests.

HTTP Mock for PHP mocks the server side of an HTTP request to allow integration testing with the HTTP side. It uses PHP’s builtin web server to start a second process that handles the mocking. The server allows registering request matcher and responses from the client side.

*BIG FAT WARNING:* software like this is inherently insecure. Only use in trusted, controlled environments.

Usage
-----

[](#usage)

Read the [docs](doc/index.md)

###  Health Score

45

—

FairBetter than 91% of packages

Maintenance19

Infrequent updates — may be unmaintained

Popularity56

Moderate usage in the ecosystem

Community41

Growing community involvement

Maturity57

Maturing project, gaining track record

 Bus Factor1

Top contributor holds 87.2% of commits — single point of failure

How is this calculated?**Maintenance (25%)** — Last commit recency, latest release date, and issue-to-star ratio. Uses a 2-year decay window.

**Popularity (30%)** — Total and monthly downloads, GitHub stars, and forks. Logarithmic scaling prevents top-heavy scores.

**Community (15%)** — Contributors, dependents, forks, watchers, and maintainers. Measures real ecosystem engagement.

**Maturity (30%)** — Project age, version count, PHP version support, and release stability.

###  Release Activity

Cadence

Every ~198 days

Recently: every ~225 days

Total

15

Last Release

1879d ago

PHP version history (4 changes)0.7.2PHP &gt;=5.4.0

0.7.8PHP &gt;=5.6.0

0.10.0PHP ~7

0.12.1PHP ~7.1

### Community

Maintainers

![](https://avatars.githubusercontent.com/u/79707?v=4)[Lars Strojny](/maintainers/lstrojny)[@lstrojny](https://github.com/lstrojny)

![](https://www.gravatar.com/avatar/684ac7e28067e217fb76551137735510e86c5f69f05cd9aa6c9e6bfea1018758?d=identicon)[CMalvika](/maintainers/CMalvika)

---

Top Contributors

[![lstrojny](https://avatars.githubusercontent.com/u/79707?v=4)](https://github.com/lstrojny "lstrojny (150 commits)")[![crellbar](https://avatars.githubusercontent.com/u/1368592?v=4)](https://github.com/crellbar "crellbar (3 commits)")[![damour](https://avatars.githubusercontent.com/u/881794?v=4)](https://github.com/damour "damour (2 commits)")[![chrisjohnson00](https://avatars.githubusercontent.com/u/1231933?v=4)](https://github.com/chrisjohnson00 "chrisjohnson00 (2 commits)")[![ademarco](https://avatars.githubusercontent.com/u/153362?v=4)](https://github.com/ademarco "ademarco (2 commits)")[![darkmantle](https://avatars.githubusercontent.com/u/410651?v=4)](https://github.com/darkmantle "darkmantle (1 commits)")[![franzliedke](https://avatars.githubusercontent.com/u/249125?v=4)](https://github.com/franzliedke "franzliedke (1 commits)")[![gabfr](https://avatars.githubusercontent.com/u/1237163?v=4)](https://github.com/gabfr "gabfr (1 commits)")[![gitter-badger](https://avatars.githubusercontent.com/u/8518239?v=4)](https://github.com/gitter-badger "gitter-badger (1 commits)")[![gturri](https://avatars.githubusercontent.com/u/308601?v=4)](https://github.com/gturri "gturri (1 commits)")[![kasperg](https://avatars.githubusercontent.com/u/73966?v=4)](https://github.com/kasperg "kasperg (1 commits)")[![micxer](https://avatars.githubusercontent.com/u/661595?v=4)](https://github.com/micxer "micxer (1 commits)")[![mtdowling](https://avatars.githubusercontent.com/u/190930?v=4)](https://github.com/mtdowling "mtdowling (1 commits)")[![peter279k](https://avatars.githubusercontent.com/u/9021747?v=4)](https://github.com/peter279k "peter279k (1 commits)")[![akondas](https://avatars.githubusercontent.com/u/8239917?v=4)](https://github.com/akondas "akondas (1 commits)")[![alexeyshockov](https://avatars.githubusercontent.com/u/203120?v=4)](https://github.com/alexeyshockov "alexeyshockov (1 commits)")[![cbywater](https://avatars.githubusercontent.com/u/1188673?v=4)](https://github.com/cbywater "cbywater (1 commits)")[![costinh](https://avatars.githubusercontent.com/u/17596437?v=4)](https://github.com/costinh "costinh (1 commits)")

###  Code Quality

TestsPHPUnit

### Embed Badge

![Health badge](/badges/internations-http-mock/health.svg)

```
[![Health](https://phpackages.com/badges/internations-http-mock/health.svg)](https://phpackages.com/packages/internations-http-mock)
```

###  Alternatives

[brianium/paratest

Parallel testing for PHP

2.5k136.1M985](/packages/brianium-paratest)[phpro/grumphp

A composer plugin that enables source code quality checks.

4.3k16.7M1.0k](/packages/phpro-grumphp)[infection/infection

Infection is a Mutation Testing framework for PHP. The mutation adequacy score can be used to measure the effectiveness of a test set in terms of its ability to detect faults.

2.2k28.9M2.4k](/packages/infection-infection)[matomo/matomo

Matomo is the leading Free/Libre open analytics platform

21.7k38.9k](/packages/matomo-matomo)[orchestra/testbench

Laravel Testing Helper for Packages Development

2.2k42.5M40.8k](/packages/orchestra-testbench)[drupal/drupal-driver

A collection of reusable Drupal drivers

6816.4M24](/packages/drupal-drupal-driver)

PHPackages © 2026

[Directory](/)[Categories](/categories)[Trending](/trending)[Changelog](/changelog)[Analyze](/analyze)
