Skip to content

Getting Started

Requirements

Before you get started with this recipe, we assume that you have:

  1. Installed Lando and gotten familar with its basics
  2. Initialized a Landofile for your codebase for use with this recipe
  3. Read about the various services, tooling, events and routing Lando offers.

Quick Start

Try out the relevant commands below to spin up a new Landoified vanilla Symfony site.

bash
# Initialize a symfony recipe
lando init \
  --source cwd \
  --recipe symfony \
  --webroot public \
  --name my-first-symfony-app

# Start it up
lando start

# Install symfony using the latest stable version for a web application
lando symfony new tmp --webapp --no-git && cp -r tmp/. . && rm -rf tmp

# (Optional) Install other Symfony dependencies you may like, e.g.:
# lando composer require encore maker stof/doctrine-extensions-bundle

# List information about this app.
lando info

# Run your application's bin/console commands with: lando console
# Here is how to clear cache:
lando console cache:clear