Ecosyste.ms: Awesome
An open API service indexing awesome lists of open source software.
https://github.com/xkrejc70/simple-php-api-webnode
https://github.com/xkrejc70/simple-php-api-webnode
Last synced: 1 day ago
JSON representation
- Host: GitHub
- URL: https://github.com/xkrejc70/simple-php-api-webnode
- Owner: xkrejc70
- Created: 2025-01-04T10:18:03.000Z (20 days ago)
- Default Branch: master
- Last Pushed: 2025-01-04T11:38:00.000Z (20 days ago)
- Last Synced: 2025-01-04T12:37:39.867Z (20 days ago)
- Language: Dockerfile
- Size: 0 Bytes
- 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