Download the PHP package net_bazzline/http_request_mock_server without Composer
On this page you can find all versions of the php package net_bazzline/http_request_mock_server. It is possible to download/install these versions without Composer. Possible dependencies are resolved automatically.
Download net_bazzline/http_request_mock_server
More information about net_bazzline/http_request_mock_server
Files in net_bazzline/http_request_mock_server
Package http_request_mock_server
Short Description free as in freedom application to test http requests with configurable responses that supports the formats json, raw and xml
License GPL-3.0
Informations about the package http_request_mock_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. The latest stable release is
Benefits
- dead stupid simple (With Great Power Comes Great Responsibility)
- extendable by its Open/closed principle inside the HttpRequestmockServerFactory
- fast and easy to use
- shipped with a ready to use index.php
- zero dependencies
- zero configuration, the usage is just a wget away
Supported GET parameters
content
Url encoded string.
format
One of the following three:
- json
- raw
- xml
status_code
Any number is working.
Example
Returning JSON
Url with all available and supported get parameters
will return
Returning RAW
Url with all available and supported get parameters
will return
Returning XML
Url with all available and supported get parameters
will return
Mature Projects
This project has a small number of 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 out there like http-server-mock to name just one.
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 if you love it :-].