A Docker-based installer and runtime for the Symfony web framework, with FrankenPHP and Caddy inside!
- If not already done, install Docker Compose (v2.10+)
- If not already done, install
make
withsudo apt-get install build-essential
(contains other packages as well) or simplysudo apt-get -y install make
- Run
make start
to build fresh images - Open
https://localhost
in your favorite web browser and accept the auto-generated TLS certificate - Run
make down
to stop the Docker containers.
Use these commands to simplify day to day usage of the project.
help
: Outputs this help screenbuild
: Builds the Docker imagesup
: Start the docker hub in detached mode (no logs)start
: Build and start the containersdown
: Stop the docker hublogs
: Show live logssh
: Connect to the FrankenPHP containertest
: Start tests with phpunit, pass the parameter "c=" to add options to phpunit, example: make test c="--group e2e --stop-on-failure"composer
: Run composer, pass the parameter "c=" to run a given command, example: make composer c='req symfony/orm-pack'vendor
: Install vendors according to the current composer.lock filesf
: List all Symfony commands or pass the parameter "c=" to run a given command, example: make sf c=aboutcc
: Clear the cachediff
: Create migration based on the diff between the current state of the database and entitiesmigrate
: Run migrationsphpcs
: Run PHP Code Snifferphpmd
: Run PHP Mess detectorphpstan
: Run PHP Stan