This is a simple example of how to use Symfony with Frankenphp.
- Docker
- Docker Compose
- Clone this repository
- Create a
.env.local
file in the project root and set the APP_SECRET variable - Run
make start
to build and start the containers - Run
make vendor-dev
to create vendor for dev - Access the application at
http://localhost:8080
Run make
to see all available commands.
- PHP: FrankenPHP container
- Database: PostgreSQL
- Mailer: Mailpit for email testing
- The application code is mounted in the PHP container at
/app
- Xdebug is available and can be enabled by setting
XDEBUG_MODE
environment variable
- PostgreSQL is accessible on port 5432
- Database credentials are set via environment variables