https://github.com/jbzoo/mock-server
Flexible HTTP mocking application for testing and fast prototyping
https://github.com/jbzoo/mock-server
http http-server httpmock jbzoo mmock mock mock-server php prototyping stubbing testing
Last synced: 6 months ago
JSON representation
Flexible HTTP mocking application for testing and fast prototyping
- Host: GitHub
- URL: https://github.com/jbzoo/mock-server
- Owner: JBZoo
- License: mit
- Created: 2021-03-21T16:02:14.000Z (over 4 years ago)
- Default Branch: master
- Last Pushed: 2023-03-28T12:26:01.000Z (over 2 years ago)
- Last Synced: 2025-03-27T18:21:43.977Z (6 months ago)
- Topics: http, http-server, httpmock, jbzoo, mmock, mock, mock-server, php, prototyping, stubbing, testing
- Language: PHP
- Homepage: https://github.com/JBZoo/Mock-Server
- Size: 1.91 MB
- Stars: 2
- Watchers: 1
- Forks: 0
- Open Issues: 2
-
Metadata Files:
- Readme: README.md
- License: LICENSE
Awesome Lists containing this project
README
# JBZoo / Mock-Server
[](https://travis-ci.org/JBZoo/Mock-Server) [](https://hub.docker.com/r/jbzoo/mock-server) [](https://coveralls.io/github/JBZoo/Mock-Server) [](https://shepherd.dev/github/JBZoo/Mock-Server) [](https://scrutinizer-ci.com/g/jbzoo/mock-server/?branch=master) [](https://www.codefactor.io/repository/github/jbzoo/mock-server/issues) [](https://www.php.net/manual/en/language.types.declarations.php#language.types.declarations.strict)
[](https://packagist.org/packages/jbzoo/mock-server) [](https://packagist.org/packages/jbzoo/mock-server/dependents?order_by=downloads) [](https://github.com/JBZoo/Mock-Server/issues) [](https://packagist.org/packages/jbzoo/mock-server/stats) [](https://hub.docker.com/r/jbzoo/mock-server) [](https://github.com/JBZoo/Mock-Server/blob/master/LICENSE)### Installing
```sh
# Build it into you project
composer require jbzoo/mock-server# OR use phar file. Replace to the last version. See releases page
wget https://github.com/JBZoo/Mock-Server/releases/download//mock-server.phar# OR just pul docker image
docker pull jbzoo/mock-server:latest
```### Usage
```shell
# Mock-Server is built-in into your project
php `pwd`/jbzoo-mock-server \
--host=0.0.0.0 \
--port=8089 \
--host-tls=localhost \
--port-tls=8090 \
--mocks=./mocks \
--ansi \
-vvv# Or Docker image
docker run \
--rm \
--name="mock-server" \
-v `pwd`/tests/mocks:/mocks \
-p 8089:8089 \
-p 8090:8090 \
jbzoo/mock-server:latest \
--ansi \
-vvv
```## Unit tests and check code style
```sh
make update
make test-all
```### License
MIT