MockAPI-PHP

Usage

1. Install Dependencies via Composer

composer install

2. Starting the Mock API Server

The mock API server can be started using the following methods.

Recommended: Using start_server.php

This script automatically applies the PORT specified in .env and clears temporary files. bash php start_server.php

Manually Using PHP Built-in Server

php -S localhost:3030 -t .

3. API Request Examples

4. responses/ Configuration

The mock API responses are stored as JSON or text files in the responses/ directory.