An open API service indexing awesome lists of open source software.

https://github.com/xkrejc70/simple-php-api-webnode

PHP Slim Simple App
https://github.com/xkrejc70/simple-php-api-webnode

docker docker-compose mysql orm php8 slim-framework unittest

Last synced: 4 months ago
JSON representation

PHP Slim Simple App

Awesome Lists containing this project

README

        

# simple-php-api-webnode

This application demonstrates a simple REST API for managing orders. The solution focuses on providing clean code architecture, testability, and flexibility. It is containerized using Docker with a MySQL database for data storage.

## Requirements
- Docker Compose

## Run App

### Installation
Clone the repository:
```
git clone
cd
```

### Start App with Docker Compose:
```
docker-compose up --build
```

### Access the API:
`http://localhost:8000/order/1`

## Run Tests
```
docker compose run --build --rm app ./vendor/bin/phpunit tests --testdox
```

## Tech Stack

- PHP 8.1 with Slim Framework 4
- Database: MySQL (with Dockerized setup)
- ORM: Doctrine for database operations
- DI container
- PHP dotenv