Skip to content

vcolesdev/vc-lando-symfony-starter

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

1 Commit
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

VC Lando Symfony Starter

Personal starter for Lando Symfony.

Features

  • Custom lando.yml config.
  • Php 8.2 and Apache
  • Appserver, PhpMyAdmin, Mailhog, and Node services
  • Custom Tooling

Install

TBA.

Post Install

1. Create a Home or Index Controller for your application.

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.

2. Connect the database to Lando.

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.

Old Cred

DATABASE_URL="postgresql://app:!ChangeMe!@127.0.0.1:5432/app?serverVersion=15&charset=utf8"

New Cred

DATABASE_URL="mysql://symfony:symfony@database:3306/symfony?serverVersion=5.7"

Troubleshoot

Issues you may run into during installation.

"Lando should never be run as root, like ever!"

See post Add Current User to Docker Group on MacOS

Helpful Links

Thank You

Thank you for your interest in VC Lando Symfony. This is a work in progress!

License

This project is licensed under the MIT License - see the LICENSE file for details.

About

WIP. A custom starting point for a Lando Symfony application.

Topics

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published