vcolesdev / vc-lando-symfony-starter

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

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

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.

License:MIT License


Languages

Language:PHP 38.7%Language:JavaScript 28.0%Language:Shell 20.6%Language:Twig 12.4%Language:CSS 0.4%