https://github.com/webeetle/symfony-ddd-skeleton
Simple scaffolding for PHP / Symfony REST microservice
https://github.com/webeetle/symfony-ddd-skeleton
hexagonal-architecture php symfony
Last synced: 2 months ago
JSON representation
Simple scaffolding for PHP / Symfony REST microservice
- Host: GitHub
- URL: https://github.com/webeetle/symfony-ddd-skeleton
- Owner: webeetle
- License: gpl-3.0
- Created: 2023-02-27T19:49:32.000Z (over 3 years ago)
- Default Branch: main
- Last Pushed: 2023-09-22T08:32:10.000Z (almost 3 years ago)
- Last Synced: 2025-06-04T22:07:41.361Z (about 1 year ago)
- Topics: hexagonal-architecture, php, symfony
- Language: PHP
- Homepage:
- Size: 83 KB
- Stars: 3
- Watchers: 8
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: Readme.md
- License: LICENSE
Awesome Lists containing this project
README
# Symfony DDD Skeleton
## Description
This is a complete stack for running Symfony 6.3 into Docker containers using docker-compose tool.
It is composed by 2 containers:
- `nginx`, acting as the webserver.
- `php`, the PHP-FPM container with the 8.2 version of PHP.
## Installation
1. ๐ Clone this rep.
2. Create the file `./.docker/.env.nginx.local` using `./.docker/.env.nginx` as template. The value of the variable `NGINX_BACKEND_DOMAIN` is the `server_name` used in NGINX.
3. Go inside folder `./docker` and run `docker-compose up -d` to start containers.
4. Inside the `php` container, run `composer install` to install dependencies from `/var/www/symfony` folder.
## Run Scritps
๐งน Keep a modern codebase with **PHP Coding Standards Fixer**:
```bash
composer lint
```
โ
Run refactors using **Rector**
```bash
composer refacto
```
โ๏ธ Run static analysis using **PHPStan**:
```bash
composer test:types
```
โ
Run unit tests using **PHPUnit**
```bash
composer test:unit
```
๐ Run the entire test suite:
```bash
composer test
```