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
- Host: GitHub
- URL: https://github.com/xkrejc70/simple-php-api-webnode
- Owner: xkrejc70
- Created: 2025-01-04T10:18:03.000Z (6 months ago)
- Default Branch: master
- Last Pushed: 2025-01-05T12:23:15.000Z (6 months ago)
- Last Synced: 2025-01-23T02:17:08.410Z (6 months ago)
- Topics: docker, docker-compose, mysql, orm, php8, slim-framework, unittest
- Language: PHP
- Homepage:
- Size: 20.5 KB
- Stars: 0
- Watchers: 1
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
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