Personal starter for Lando Symfony.
- Custom
lando.yml
config. - Php 8.2 and Apache
- Appserver, PhpMyAdmin, Mailhog, and Node services
- Custom Tooling
TBA.
Lando comes with its own helper console
utility, which you can use to perform Symfony operations.
lando console make:controller DefaultController
- You can replace
DefaultController
with whatever you like. - Update the route annotation path in your controller to
/
if you'd like it to serve as your homepage or application index.
In order for our database to work, we need to connect it to Symfony. View your database information by using:
lando info
This should display relevant information about your app, including your database credentials. By default, it should look like below:
host: database
user: symfony
pass: symfony
dbname: symfony
Navigate to your .env
file and replace DATABASE_URL
with the info supplied by lando info
.
DATABASE_URL="postgresql://app:!ChangeMe!@127.0.0.1:5432/app?serverVersion=15&charset=utf8"
DATABASE_URL="mysql://symfony:symfony@database:3306/symfony?serverVersion=5.7"
Issues you may run into during installation.
See post Add Current User to Docker Group on MacOS
- Get Lando
- Get Symfony
- Documentation - Lando
- Documentation - Lando Symfony Plugin
- Documentation - Getting Started with Symfony
Thank you for your interest in VC Lando Symfony. This is a work in progress!
This project is licensed under the MIT License - see the LICENSE file for details.