A quick to configure and deploy mock API server to accelerate your Integrations
Proudly in PHP
- PHP 7.4 and above
- No dependencies/frameworks
- Responsive out-of-the-box
- Configuration defined Routes
- Static and Dynamic Responses
See config/mock-server.config.php for default config.
./vendor/bin/phpunit --testdox tests/unit
php must be able to see index.php
php -S 127.0.0.1:8765 -t /install/dir/
Run local php server as shown above then:
$ vendor/bin/phpunit --testdox tests/rest/
default port 8765
$ docker compose up --build
$ curl -s http://localhost:8765/mock-server/status
2022-07-17 13:45:04 / Operational (script:mock-server-status.php)