La Taverne du Dragon Ivre

Symfony for PHP developers

Comfortable with PHP and OOP? Learn Symfony by building, chapter after chapter, the website of the Drunken Dragon tavern.

74 exercises 12 chapters 17,820 XP About 47 h of practice

To get started

Chapter 1 · exercise 1

The tavern opens its doors

Start the track

€79.00 €49.00 Incl. VAT, lifetime access

Founder price, 99 places left.

Buy the track

First chapter free with an account.

01

First steps at the tavern Free

8 exercises · 1,040 XP · ≈ 3 h · course notes Symfony basics: routes, controllers, Twig templates, query parameters, a POST form, flash messages, services and dependency injection.
  1. Exercise 1: The tavern opens its doors 20 min · 100 XP
  2. Exercise 2: The dish of the day 20 min · 100 XP
  3. Exercise 3: Prices in gold pieces 20 min · 100 XP
  4. Exercise 4: One sign for every page 25 min · 120 XP
  5. Exercise 5: How many adventurers? 20 min · 120 XP
  6. Exercise 6: The reservation 25 min · 150 XP
  7. Exercise 7: The head cook 30 min · 150 XP
  8. Final exercise: 🐉 Boss: trouble in the kitchen 25 min · 200 XP

What chapter 1 teaches →

02

The cellar and the pantry 🔒 Full track

6 exercises · 1,080 XP · ≈ 2 h 45 min · course notes Doctrine ORM: entities and mapping, repositories, QueryBuilder and DQL queries, ManyToOne and OneToMany relations, a console command to fill the database.
  1. Exercise 1: Bruna's ledger 25 min · 150 XP
  2. Exercise 2: The menu comes out of the database 25 min · 150 XP
  3. Exercise 3: A tailor-made query 25 min · 150 XP
  4. Exercise 4: Bruna invents a dish 30 min · 180 XP
  5. Exercise 5: A place for every dish 30 min · 200 XP
  6. Final exercise: 🐉 Boss: the flooded cellar 25 min · 250 XP

What chapter 2 teaches →

03

The tavern's scrolls 🔒 Full track

6 exercises · 1,170 XP · ≈ 2 h 45 min · course notes Symfony forms: FormType and EntityType, validation constraints, UniqueEntity, CSRF protection, editing and deleting an entity.
  1. Exercise 1: A proper form 30 min · 180 XP
  2. Exercise 2: Not just anything on the plate 25 min · 180 XP
  3. Exercise 3: Bruna fixes her menu 30 min · 180 XP
  4. Exercise 4: The guestbook 35 min · 200 XP
  5. Exercise 5: Taking a dish off the menu 25 min · 180 XP
  6. Final exercise: 🐉 Boss: the cursed scroll 25 min · 250 XP

What chapter 3 teaches →

04

The keys to the tavern 🔒 Full track

6 exercises · 1,290 XP · ≈ 3 h 30 min · course notes Symfony security: firewall, form login, password hashing, roles and role hierarchy, access_control, IsGranted and voters.
  1. Exercise 1: Who goes there? 30 min · 200 XP
  2. Exercise 2: The staff register 30 min · 200 XP
  3. Exercise 3: To each their role 1 h · 200 XP
  4. Exercise 4: To each their own dishes 30 min · 220 XP
  5. Exercise 5: Changing the lock 35 min · 220 XP
  6. Final exercise: 🐉 Boss: the stolen keys 25 min · 250 XP

What chapter 4 teaches →

05

Magic scrolls 🔒 Full track

6 exercises · 1,430 XP · ≈ 4 h 30 min · course notes A JSON API with Symfony: the Serializer and groups, DTOs with #[MapRequestPayload], 201, 400 and 422 responses, access token authentication.
  1. Exercise 1: The menu on a scroll 1 h · 200 XP
  2. Exercise 2: A dish on demand 1 h · 220 XP
  3. Exercise 3: Booking by pigeon 30 min · 240 XP
  4. Exercise 4: The guild's seal 35 min · 250 XP
  5. Exercise 5: Filtering the menu 50 min · 240 XP
  6. Final exercise: 🐉 Boss: the lost pigeon 30 min · 280 XP

What chapter 5 teaches →

06

Never again! 🔒 Full track

6 exercises · 1,460 XP · ≈ 4 h · course notes Testing a Symfony application: functional tests with WebTestCase, PHPUnit unit tests, security and API tests, graded by mutants.
  1. Exercise 1: The first safety net 35 min · 220 XP
  2. Exercise 2: Data to test with 35 min · 230 XP
  3. Exercise 3: The bill, please 40 min · 230 XP
  4. Exercise 4: Who is allowed? 40 min · 240 XP
  5. Exercise 5: Testing the API 45 min · 240 XP
  6. Final exercise: 🐉 Boss: the lying tests 40 min · 300 XP

What chapter 6 teaches →

07

The messenger raven 🔒 Full track

6 exercises · 1,570 XP · ≈ 3 h 30 min · course notes Symfony Messenger: messages and handlers, async transports, retries and the failure transport, scheduled tasks with Scheduler, testing messages.
  1. Exercise 1: The first raven 40 min · 240 XP
  2. Exercise 2: The raven flies in the background 30 min · 250 XP
  3. Exercise 3: The raven that gets lost 35 min · 250 XP
  4. Exercise 4: The evening raven 30 min · 250 XP
  5. Exercise 5: Testing the ravens 40 min · 260 XP
  6. Final exercise: 🐉 Boss: the broken aviary 40 min · 320 XP

What chapter 7 teaches →

08

Back to the cellar 🔒 Full track

6 exercises · 1,650 XP · ≈ 4 h 45 min · course notes Doctrine in production: schema and data migrations, ManyToMany relations, N+1 queries and joins, pagination with the Paginator.
  1. Exercise 1: The first migration 40 min · 250 XP
  2. Exercise 2: Keep the cellar full 45 min · 260 XP
  3. Exercise 3: The pantry 1 h · 260 XP
  4. Exercise 4: The Friday rush 1 h · 270 XP
  5. Exercise 5: The big guestbook 40 min · 270 XP
  6. Final exercise: 🐉 Boss: the collapsed storeroom 35 min · 340 XP

What chapter 8 teaches →

09

The tavern's inner workings 🔒 Full track

6 exercises · 1,700 XP · ≈ 3 h 30 min · course notes How Symfony works: kernel events and listeners, domain events, Doctrine listeners, service decoration, cache, environment variables.
  1. Exercise 1: Closed on Mondays 30 min · 270 XP
  2. Exercise 2: The tavern bell 45 min · 270 XP
  3. Exercise 3: The slug that writes itself 30 min · 270 XP
  4. Exercise 4: The wind oracle 30 min · 280 XP
  5. Exercise 5: The tavern's settings 50 min · 270 XP
  6. Final exercise: 🐉 Boss: the tavern turned upside down 30 min · 340 XP

What chapter 9 teaches →

10

The life of a reservation 🔒 Full track

6 exercises · 1,730 XP · ≈ 4 h 30 min · course notes Sending emails with Symfony Mailer and Twig, then handling the life of a reservation with the Workflow component: transitions, guards, events.
  1. Exercise 1: The first scroll 30 min · 270 XP
  2. Exercise 2: A scroll with style 45 min · 270 XP
  3. Exercise 3: The life of a reservation 55 min · 280 XP
  4. Exercise 4: Gorm's reservation book 45 min · 290 XP
  5. Exercise 5: Scrolls from the reservation book 1 h · 280 XP
  6. Final exercise: 🐉 Boss: the misplaced scrolls 30 min · 340 XP

What chapter 10 teaches →

11

The boss's orders 🔒 Full track

6 exercises · 1,700 XP · ≈ 4 h · course notes Symfony console commands: #[AsCommand], arguments and options, interactive questions, long tasks and progress bars, CommandTester.
  1. Exercise 1: The inventory 35 min · 260 XP
  2. Exercise 2: Bruna's command 40 min · 270 XP
  3. Exercise 3: Gorm asks the questions 50 min · 270 XP
  4. Exercise 4: The big clean-up 40 min · 280 XP
  5. Exercise 5: Testing the orders 45 min · 280 XP
  6. Final exercise: 🐉 Boss: orders misunderstood 30 min · 340 XP

What chapter 11 teaches →

12

The big night 🔒 Full track

6 exercises · 2,000 XP · ≈ 6 h 15 min · course notes The final project: an end-to-end feature with little guidance, bringing together entities, forms, security, a JSON API, emails, the console and tests.
  1. Exercise 1: The specifications 1 h 15 min · 320 XP
  2. Exercise 2: The story night poster 1 h · 320 XP
  3. Exercise 3: Sign-ups 1 h · 320 XP
  4. Exercise 4: The guilds join in 50 min · 320 XP
  5. Exercise 5: The night before 1 h · 320 XP
  6. Final exercise: 🐉 Boss: the big night 55 min · 400 XP

What chapter 12 teaches →

Learn Symfony by writing code

This track teaches Symfony 8 by writing code, not by watching videos. Every exercise runs in the browser, with nothing to install: a real Symfony project runs in the page, the preview updates as you type, and automated tests tell you when each objective is met.

The common thread is the website of the Drunken Dragon tavern. It starts as a page that shows the dish of the day and ends as a full application, with a database, user accounts, an API and background jobs.

What you will learn

  • routes, controllers and Twig templates;
  • Doctrine ORM: entities, relations, queries, migrations, and traps such as N+1 queries;
  • forms and validation;
  • security: login, roles, voters;
  • a JSON API with the Serializer and token authentication;
  • functional and unit tests with PHPUnit;
  • Messenger, Scheduler, Mailer and Workflow;
  • events, service decoration and console commands.

Each chapter ends with a boss, usually a debugging job: find out why the application is broken. Then comes a set of course notes to keep, as a web page and as a PDF.

Who it is for

Developers who already know PHP and object-oriented programming (classes, interfaces, namespaces) and want to move to Symfony. No prior Symfony knowledge is needed.

The first chapter is free with an account.