PHPackages                             net\_bazzline/http\_request\_mock\_server - 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. net\_bazzline/http\_request\_mock\_server

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

net\_bazzline/http\_request\_mock\_server
=========================================

free as in freedom application to test http requests with configurable responses that supports the formats json, raw and xml

2.0.0(8y ago)217GPL-3.0PHPPHP ^5.6||^7.0

Since Aug 31Pushed 8y ago4 watchersCompare

[ Source](https://github.com/bazzline/http_request_mock_server)[ Packagist](https://packagist.org/packages/net_bazzline/http_request_mock_server)[ RSS](/packages/net-bazzline-http-request-mock-server/feed)WikiDiscussions master Synced 2mo ago

READMEChangelogDependenciesVersions (3)Used By (0)

Http Test Request Server
========================

[](#http-test-request-server)

This component should easy up your testing. It can also be used as a mocked endpoint.

The current change log can be found [here](CHANGELOG.md). The latest stable release is [![Latest stable](https://camo.githubusercontent.com/a489f163b8650cc539406793d4d6ca3ec4ce5416b65a16ca0a2d4597d62eec08/68747470733a2f2f696d672e736869656c64732e696f2f7061636b61676973742f762f6e65745f62617a7a6c696e652f687474705f726571756573745f6d6f636b5f7365727665722e737667)](https://packagist.org/packages/net_bazzline/http_request_mock_server)

Benefits
========

[](#benefits)

- [dead stupid simple](https://en.wikipedia.org/wiki/KISS_principle) (With Great Power Comes Great Responsibility)
- extendable by its [Open/closed principle](https://en.wikipedia.org/wiki/Open/closed_principle) inside the [HttpRequestmockServerFactory](source/HttpRequestMockServerFactory.php)
- fast and easy to use
- shipped with a ready to use [index.php](public/index.php)
- zero dependencies
- zero configuration, the usage is just a wget away

Supported GET parameters
========================

[](#supported-get-parameters)

content
-------

[](#content)

[Url encoded](http://php.net/manual/en/function.urlencode.php) string.

format
------

[](#format)

One of the following three:

- json
- raw
- xml

status\_code
------------

[](#status_code)

Any number is working.

Example
=======

[](#example)

Returning JSON
--------------

[](#returning-json)

Url with all available and supported get parameters

```
?format=json&content=%7B%22foo%22%3A+%22bar%22%7D
```

will return

```
{"foo":"bar"}
```

Returning RAW
-------------

[](#returning-raw)

Url with all available and supported get parameters

```
?format=raw&content=There+is+no+foo+without+a+bar
```

will return

```
There is no foo without a bar

```

Returning XML
-------------

[](#returning-xml)

Url with all available and supported get parameters

```
?format=xml&content=bar
```

will return

```

bar

```

Mature Projects
===============

[](#mature-projects)

This project has a small number of [source lines of code](https://en.wikipedia.org/wiki/Source_lines_of_code) (less than 127 lines of code without the syntactic sugar). It is just a small thing you can use. There are a lot of [mature projects](https://packagist.org/search/?q=api%20mock) out there like [http-server-mock](https://packagist.org/packages/upscale/http-server-mock) to name just one.

Final Words
===========

[](#final-words)

Star it if you like it :-). Add issues if you need it. Pull patches if you enjoy it. Write a blog entry if you use it. [Donate something](https://gratipay.com/~stevleibelt) if you love it :-\].

###  Health Score

27

—

LowBetter than 49% of packages

Maintenance20

Infrequent updates — may be unmaintained

Popularity9

Limited adoption so far

Community8

Small or concentrated contributor base

Maturity59

Maturing project, gaining track record

 Bus Factor1

Top contributor holds 100% 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 ~0 days

Total

2

Last Release

3172d ago

Major Versions

1.0.0 → 2.0.02017-09-01

### Community

Maintainers

![](https://www.gravatar.com/avatar/58451b041f6f5a38c7e62762c96d01f5e2bcac30e322707fe4760a82bccb6856?d=identicon)[artodeto](/maintainers/artodeto)

---

Top Contributors

[![stevleibelt](https://avatars.githubusercontent.com/u/2287220?v=4)](https://github.com/stevleibelt "stevleibelt (8 commits)")

---

Tags

httpphphttpsjsonapirestxmlmockserverbazzlinefree as in freedomphp5reusablerestfulstatus codePHP7php56raw

### Embed Badge

![Health badge](/badges/net-bazzline-http-request-mock-server/health.svg)

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

###  Alternatives

[php-curl-class/php-curl-class

PHP Curl Class makes it easy to send HTTP requests and integrate with web APIs.

3.3k9.5M351](/packages/php-curl-class-php-curl-class)[ismaeltoe/osms

PHP library wrapper of the Orange SMS API.

4540.0k](/packages/ismaeltoe-osms)

PHPackages © 2026

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