PHP-MySQL REST API Development

Заказчик: AI | Опубликовано: 11.03.2026

I am putting together a REST-style API built with PHP and a MySQL database. Its first job is to return user information quickly and in clean JSON, so the user endpoints should focus on efficient, well-indexed SELECT queries and clear response structures. Alongside those read-only calls, I also need a second group of endpoints for product details that can: • return existing records (GET) • add or modify items (POST / PUT) • remove items (DELETE) You are free to work with native PHP, Slim, Lumen, or a full Laravel setup—whichever will let you keep the codebase modular and easy to extend. Just keep the dependencies light and document any third-party packages you bring in. My acceptance check is simple: spin up the project, import the sample SQL I’ll provide, hit each route with cURL or Postman, and see properly formatted JSON with the expected status codes (200, 201, 204, 400, 404). If a route fails validation or an exception slips through, graceful error handling should still return JSON. Please structure the folders sensibly, comment where needed, and include a short README so I can deploy on a standard LAMP stack without guesswork.