Ecosyste.ms: Awesome
An open API service indexing awesome lists of open source software.
https://github.com/damien-louis/symfony-docker
An up to date clean Symfony based on docker (PHP, Caddy, Postgres) with QA and tests tools
https://github.com/damien-louis/symfony-docker
docker makefile qa symfony tests
Last synced: about 2 months ago
JSON representation
An up to date clean Symfony based on docker (PHP, Caddy, Postgres) with QA and tests tools
- Host: GitHub
- URL: https://github.com/damien-louis/symfony-docker
- Owner: damien-louis
- Created: 2023-10-28T09:29:21.000Z (about 1 year ago)
- Default Branch: main
- Last Pushed: 2024-06-01T14:10:36.000Z (7 months ago)
- Last Synced: 2024-08-02T20:48:06.226Z (5 months ago)
- Topics: docker, makefile, qa, symfony, tests
- Language: PHP
- Homepage:
- Size: 373 KB
- Stars: 6
- Watchers: 2
- Forks: 1
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
Awesome Lists containing this project
README
# Symfony Docker
[![Build Status](https://github.com/damien-louis/symfony-docker/workflows/ci/badge.svg)](https://github.com/damien-louis/symfony-docker/actions?query=workflow%3A%22ci%22)
An up to date clean Symfony based on docker (PHP, Caddy, Postgres) with QA and tests tools.
Behat component isn't available for Symfony 7 for the moment. Please use Symfony 6.4 if you need Behat.- [Symfony 7.1](https://github.com/symfony/symfony/releases/tag/v7.1)
- [PHP 8.3](https://hub.docker.com/r/dmnlouis/php)
- [Caddy 2.7](https://hub.docker.com/r/dmnlouis/caddy)
- [Postgres 16](https://hub.docker.com/_/postgres)```
1. git clone [email protected]:damien-louis/symfony-docker.git my-project
2. cd my-project
3. make install
```
**It's enough \o/**
Now you can visit https://app.local (or personal domain if you change `SERVER_NAME` in `.env`/`.env.local`)### PHP versions:
You can change `PHP_VERSION` in `.env.local` to switch to another version.
Versions available on https://hub.docker.com/r/dmnlouis/php:
- 8.2
- 8.3### X-Debug:
#### To use PHP with X-Debug enabled:
1. `make stop`
2. In `.env.local`, replace `PHP_IMAGE=` value by `php-xdebug`
3. `make start`Or use `make restart-with-xdebug` if `sed` is installed on your machine.
#### To return to PHP without X-Debug:
Follow same steps with putting back `php` value to `PHP_IMAGE=`Or use `make restart-without-xdebug` if `sed` is installed on your machine.
### QA tools:
- PHP_CodeSniffer [3.10.3](https://github.com/PHPCSStandards/PHP_CodeSniffer/releases/tag/3.10.3)
- PHP-CS-Fixer [3.64.0](https://github.com/PHP-CS-Fixer/PHP-CS-Fixer/releases/tag/v3.64.0)
- PHPStan [1.12.7](https://github.com/phpstan/phpstan/releases/tag/1.12.7)
- PHP Insights [2.11.0](https://github.com/nunomaduro/phpinsights/releases/tag/v2.11.0)
- YML Linter
- Twig Linter
- Service Container Linter### /!\ Don't forget to attach to your own repository:
```
1. rm -rf .git
2. git init
3. git remote add origin
4. git checkout -b first-commit
5. git add .
6. git commit -m "First commit"
7. git push origin first-commit
```Execute `make` to list commands (`make qa`, `make tests`...)
You can remove `.github` folder if you don't use Github