jbzoo / mock-server
Flexible HTTP mocking application for testing and fast prototyping
Installs: 2 158
Dependents: 0
Suggesters: 0
Security: 0
Stars: 2
Watchers: 2
Forks: 0
Open Issues: 2
Requires
- php: >=7.2
- ext-pcntl: *
- amphp/amp: ^2.5.2
- amphp/file: ^1.0.2
- amphp/http-client: ^4.5.5
- amphp/http-server: ^2.1.0
- amphp/http-server-form-parser: ^1.1.4
- amphp/http-server-router: ^1.0.2
- amphp/log: ^1.1.0
- jbzoo/data: ^4.1.3
- jbzoo/utils: ^4.2.3
- monolog/monolog: ^2.2.0
- symfony/console: >=4.4.21
- symfony/yaml: >=5.2.5
- winzou/state-machine: ^0.4.1
- yosymfony/resource-watcher: ^3.0.0
Requires (Dev)
- guzzlehttp/guzzle: ^7.3.0
- jbzoo/http-client: ^3.4.2
- jbzoo/toolbox-dev: ^2.9.0
This package is auto-updated.
Last update: 2024-11-28 14:49:13 UTC
README
Installing
# Build it into you project composer require jbzoo/mock-server # OR use phar file. Replace <VERSION> to the last version. See releases page wget https://github.com/JBZoo/Mock-Server/releases/download/<VERSION>/mock-server.phar # OR just pul docker image docker pull jbzoo/mock-server:latest
Usage
# 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
make update make test-all
License
MIT