Getting started
Part 1 of the Symfony course. What Symfony is, the CLI and a new project, route attributes, controllers, and Twig in its basic and advanced forms.
The cards below open the lessons of the part, and the tree lists them in the reading order of the whole
course. The previous and the next page at the bottom move through that order.
1.1
What is Symfony and where it runs
What Symfony is, how it differs from plain PHP scripts, and where the framework fits.
Open
1.2
Install Symfony
How to install the Symfony CLI, create a new project, and open the welcome page.
Open
1.3
Your first page
Create your first Symfony page with one route attribute and a tiny controller.
Open
1.4
Routes
Map URLs to controller methods with route attributes, parameters, requirements, and names.
Open
1.5
Controllers
Return JSON, render templates, redirect, and read request data in Symfony controllers.
Open
1.6
Twig basics
Print variables, loop, branch, and include partials with the Twig template engine.
Open
1.7
Twig advanced
Reuse layouts with extends and blocks, and format output with filters and functions.
Open