Ecosyste.ms: Awesome

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

Awesome Lists | Featured Topics | Projects

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


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

Last synced: 1 day ago
JSON representation

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