Skip to content

Symfony Mastery

Davor Minchorov•Beginner•Symfony•PHP•October 28, 2026

This path takes you from your first Symfony route to an app you can keep upgrading: Doctrine queries that don't run once per row, forms with validation, security with voters and access tokens, services wired through the container, Messenger workers that retry failed jobs, and tests that drive a real browser.
It's a curated list of docs, video courses, conference talks and books in 23 chapters. It assumes you know PHP; if you don't, start with PHP Mastery. Chapters 1 to 10 cover the framework in order: the basics, routing and controllers, Twig, Doctrine, forms, validation, security, the service container, the kernel and the console, and testing. Chapters 11 to 20 cover Messenger, API Platform, Symfony UX, EasyAdmin, HTTP Client and Mailer, caching, workflows, deployment, Symfony AI and upgrading: open the one that matches the problem in front of you. Chapters 21 and 22 cover architecture and bundles, and chapter 23 points you to Fabien Potencier's keynote and the Symfony blog.
You don't need every resource. Pick one per chapter and use it on a real project before you move on.

Symfony Fundamentals

Chapter 1

Install Symfony with the Symfony CLI, find your way around the directory structure, and build a small app with controllers, Twig and services. Learn Flex recipes, the bin/console tool, environments and configuration, and how to translate an app into several languages.

Article

Symfony Documentation

Find any part of the framework by version, with docs for 8.1 (current), 7.4 and 6.4. The page tells you to "start by reading all the articles in the G...

ArticleExternal
View resource
Book

Symfony: The Fast Track

Build a guestbook app from `symfony new` to production: controllers, the database and Doctrine, the UI with Twig, forms, securing the admin backend, t...

BookExternal
View resource
Video Course

Cosmic Coding with Symfony 7

Set up a Symfony app with the symfony binary and build a small one: routes and controllers, Twig and template inheritance, the profiler, JSON endpoint...

Video CourseExternal
View resource
Video Course

Symfony 7 Fundamentals: Services, Config & Environments

See how Symfony fits together: bundles provide services, `debug:container` and `debug:autowiring` show what exists, and configuration comes from bundl...

Video CourseExternal
View resource
Article

Symfony CLI

Run a local web server with HTTPS, connect Docker services and environment variables, manage several PHP versions, and run background workers. `symfon...

ArticleExternal
View resource
Article

The Symfony Framework Best Practices

Compare your app with the Symfony project's recommendations: the default directory structure, environment variables for infrastructure configuration,...

ArticleExternal
View resource
Video Course

Bonjour-> Hello-> Hola: Translate your Site

Turn a single-language Symfony app into a multilingual one: install the Translation component, add localized routes and a language switcher, translate...

Video CourseExternal
View resource

Routing and Controllers

Chapter 2

Define routes with attributes, constrain them with requirements, and generate URLs. Write controllers that extend AbstractController or stand alone as services, and map query parameters and request payloads into typed arguments. Pick consistent names for routes, controllers and templates, and see what Symfony 7.3 changed in route attributes.

Article

Routing

Write routes as attributes and look up the rest as you need it: matching HTTP methods, route parameters with requirements, optional parameters, priori...

ArticleExternal
View resource
Article

Controller

Write a controller and return responses: redirects, rendered templates, JSON and streamed files. Covers the AbstractController base class, fetching se...

ArticleExternal
View resource
Article

A Good Naming Convention for Routes, Controllers and Templates?

Pick consistent names for the controller class, its actions, the route and the template. The author's convention: a singular business noun in PascalCa...

ArticleExternal
View resource
Article

How to Define Controllers as Services

Register controllers as services without extending AbstractController: the `#[AsController]` attribute, the `controller.service_arguments` tag and inv...

ArticleExternal
View resource
Article

New in Symfony 7.3: Routing Improvements

See what Symfony 7.3 changed in route attributes: `#[Route]` on a class or method now marks it as a controller with service argument resolution, so `#...

ArticleExternal
View resource

Twig and Templates

Chapter 3

Write Twig templates with inheritance, blocks, macros, filters and functions, and render them from controllers. Manage CSS and JavaScript with AssetMapper and no bundler, follow a video course on it, and read how the Symfony websites moved to it from Webpack Encore. Symfony UX, including Twig Components and Live Components, has its own chapter.

Article

Twig Documentation

Learn Twig from the template designer guide, then look up tags, filters, functions and tests in the reference. Also covers Twig for developers and ext...

ArticleExternal
View resource
Article

Creating and Using Templates

Render templates from controllers and use Twig inside a Symfony app: the `app` global variable, your own global variables, including templates, templa...

ArticleExternal
View resource
Article

AssetMapper: Simple, Modern CSS & JS Management

Write modern JavaScript and CSS "without the complexity of using a bundler". Covers the two features: mapping and versioning assets, and importmaps. T...

ArticleExternal
View resource
Video Course

AssetMapper: Modern JS with Zero Build System

Watch AssetMapper used from install to production: modern JavaScript in the browser without a build system, mapping assets and their versioning, CSS a...

Video CourseExternal
View resource
Article

Upgrading Symfony Websites to AssetMapper

Follow a real move from Webpack Encore to AssetMapper: package.json dependencies become `importmap:require` calls, Encore entries become importmap ent...

ArticleExternal
View resource

Doctrine ORM

Chapter 4

Map entities, query them with repositories, DQL and the query builder, and model associations. Run migrations, react to lifecycle events, and cut query counts with joins, fetch modes and Doctrine's performance settings.

Article

Doctrine Object Relational Mapper (ORM)

Look up mapping with attributes, XML or PHP, associations and inheritance, events, DQL, the QueryBuilder and native SQL. The advanced topics include b...

ArticleExternal
View resource
Article

Databases and the Doctrine ORM

Set up Doctrine in a Symfony app: install the ORM pack, configure the database, create an entity, create migrations, then persist, fetch, update and d...

ArticleExternal
View resource
Video Course

Doctrine, Symfony 7 & the Database

Build your first entity and work with it: Docker database setup, migrations, fixtures, queries with DQL, the QueryBuilder and the repository class, Fo...

Video CourseExternal
View resource
Video Course

Symfony, Doctrine Relations & Warp Drive Basics

Model relationships between entities: many-to-one and one-to-many, owning versus inverse sides, orphan removal, ordering a relation and its `fetch` ty...

Video CourseExternal
View resource
Article

DoctrineMigrationsBundle Documentation

Run Doctrine Migrations from the Symfony console: installation, configuration, usage, running migrations during deployment, skipping migrations, migra...

ArticleExternal
View resource
Article

Doctrine Events

Choose between the three ways to react to Doctrine events: lifecycle callbacks on the entity, entity listeners and lifecycle listeners. Callbacks cann...

ArticleExternal
View resource
Article

Improving Performance

Speed up Doctrine with a bytecode cache, metadata and query caches, alternative query result formats, read-only entities, extra-lazy collections, a te...

ArticleExternal
View resource
Video Course

Go Pro with Doctrine Queries

Write better queries: DQL, the QueryBuilder, joins and `addSelect` to reduce queries, EXTRA_LAZY relationships, SUM and COUNT, selecting specific fiel...

Video CourseExternal
View resource

Forms

Chapter 5

Build forms from form type classes, render and process them, style them with the built-in form themes, and validate the submitted data. Then go further with data transformers and custom field types, write your own form themes, split a long form into steps with form flows, and choose how to bind forms to domain objects that have no setters.

Article

Forms

Learn how forms work as a "bidirectional mapping layer between your PHP objects (or arrays) and HTML forms": form classes, rendering, processing, vali...

ArticleExternal
View resource
Video Course

Symfony Forms: The Basics

Build a form type class, render and process it, and use the built-in Tailwind form theme. Covers multiple submit buttons, client-side versus server-si...

Video CourseExternal
View resource
Video Course

Getting Crazy with Form Themes

Customize how forms render: write your own form theme, use form variables in it, pass variables from the controller and from the form type, add a help...

Video CourseExternal
View resource
Article

Form Types Reference

Look up the built-in field types: text, choice (including ChoiceType, EnumType and EntityType), date and time, CheckboxType, FileType, Symfony UX and...

ArticleExternal
View resource
Article

How to Use Data Transformers

Convert a field's value between the form and your model. Works through two examples, comma-separated tags into an array and an issue number into an is...

ArticleExternal
View resource
Article

How to Create a Custom Form Field Type

Create a form type based on a built-in type, such as a select of shipping options, or build one from scratch. Covers defining the form type, adding co...

ArticleExternal
View resource
Article

New in Symfony 7.4: Multi-Step Forms

Split a long form into steps with form flows: extend `AbstractFlowType`, add steps with `addStep()`, handle the flow in a controller with `isFinished(...

ArticleExternal
View resource
Video

Using Symfony Forms with Rich Domain Models

Decide how to bind a form to an object that has no setters and validates itself. Compares an anemic model with a rich one, then two ways to keep the r...

VideoExternal
View resource

Validation

Chapter 6

Put built-in constraints on properties and classes, write your own constraint and validator, and run a subset of constraints with validation groups. Validate raw values such as an email address outside any form or entity.

Article

Validation

Learn the two ideas behind the Validator component, constraints and validators, then use them on properties, getters and classes. Covers validating ob...

ArticleExternal
View resource
Article

Validation Constraints Reference

Look up the constraints "natively available in Symfony", grouped as Basic, String, Comparison, Number, Date, Choice, File, Financial, Doctrine and Oth...

ArticleExternal
View resource
Article

How to Create a Custom Validation Constraint

Write your own constraint and its validator: the constraint class, the validator, using it, validators with dependencies or custom options, class cons...

ArticleExternal
View resource
Article

How to Apply only a Subset of all Your Validation Constraints (Validation Groups)

Check an object against only some of its constraints by putting constraints into groups. The page's example is a User class that is validated both on...

ArticleExternal
View resource
Article

How to Validate Raw Values (Scalar Values and Arrays)

Validate a single value, such as a string that should be a valid email address, by calling the validator with a constraint from inside a controller. F...

ArticleExternal
View resource
Article

On using the Symfony NotCompromisedPassword security validator

Check a password against known data breaches with the `NotCompromisedPassword` constraint, added in Symfony 4.3. Calls the validator by hand on a raw...

ArticleExternal
View resource

Security

Chapter 7

Set up login with a firewall, hash passwords, and restrict access with access_control, roles, a role hierarchy and voters. Authenticate API clients with access tokens or with JWTs from LexikJWTAuthenticationBundle. Go further with sudo mode, disabled users, restricted impersonation and password reset, and learn why to check permissions in voters instead of roles.

Article

Security

Set up the firewall, form login, JSON login and access tokens, limit login attempts, fetch the user object, and control access with access_control, vo...

ArticleExternal
View resource
Video Course

Symfony Security: The Basics

Build a security system from login to authorization: users, password hashing, remember me, roles, role hierarchy, `access_control`, a custom voter, im...

Video CourseExternal
View resource
Video Course

Symfony Security: Going Further

Add the pieces real apps need on top of The Basics: a super-admin voter, sudo mode that asks for a fresh full authentication, a 404 instead of a 403 w...

Video CourseExternal
View resource
Article

Grant on Permissions, not Roles

Learn why to check permissions instead of roles. The author separates a security attribute (what you pass to `isGranted()`) from a user's roles, expla...

ArticleExternal
View resource
Article

How to use Access Token Authentication

Authenticate API clients with a token: configure the access token authenticator and token extractor, customize the success handler, and create users f...

ArticleExternal
View resource
Tool

LexikJWTAuthenticationBundle

Add JWT authentication to a Symfony API: generate the SSL keys, configure security and routing, obtain a token and send it on later requests. The docs...

ToolExternal
View resource
Video

Keynote: Modern Security with Symfony's Shiny new Security Component

Hear how the security system of Symfony 5.1 and 5.2 was redesigned. From the talk abstract, not watched: it covers activating and migrating to it, str...

VideoExternal
View resource

Dependency Injection and the Container

Chapter 8

Define and autowire services, configure them with autoconfiguration, tag services and collect them, decorate a service, and write a compiler pass that changes the container before it is cached.

Article

Service Container

Learn how services are defined and injected: `autowire`, `autoconfigure`, scalar injection, expressions, public versus private services and linting th...

ArticleExternal
View resource
Article

Service Tags

Understand tags as labels that mark a service's purpose, such as `twig.extension`. Covers autoconfiguring tags, adding attributes to tags, referencing...

ArticleExternal
View resource
Video

Behind the magic - inside the Symfony dependency injection container

Watch a walk through the service container: how autowired instances of your classes appear in your code, what happens when the container is compiled,...

VideoExternal
View resource
Article

Compiling and Extending the Container

See how the container is compiled and cached in var/cache/, then write a compiler pass to add or remove services, replace arguments or add tags. Cover...

ArticleExternal
View resource
Video Course

Dependency Injection #[Attributes]

Configure services with attributes instead of YAML: `AutowireLocator`, `AutoconfigureTag` and `AsTaggedItem`, `AutowireIterator`, `AsAlias`, `AsDecora...

Video CourseExternal
View resource
Article

Service Decoration

Replace or wrap a service without changing the original class. Covers decorating services, accessing the decorated service, decoration priority, decor...

ArticleExternal
View resource

The Kernel, Events and the Console

Chapter 9

Follow a request through the HttpKernel, from the kernel.request event to kernel.terminate, including how the controller and its arguments are resolved. Hook into it with event listeners and subscribers, then write your own console commands, including ones that handle signals. Strip a Symfony app down to one file to see what the Kernel class, the MicroKernelTrait and the front controllers do.

Article

The HttpKernel Component

Trace how a Request becomes a Response: the kernel events from kernel.request to kernel.terminate, how the controller and its arguments are resolved,...

ArticleExternal
View resource
Article

Symfony in 200 lines

See what the Kernel and Flex contribute by removing them one at a time. Starts from the minimal skeleton, deletes the default config, shows that `conf...

ArticleExternal
View resource
Article

Events and Event Listeners

Write event listeners and subscribers, register listeners with PHP attributes, set a listener priority, stop event propagation, and choose between lis...

ArticleExternal
View resource
Video Course

Symfony 5 Deep Dive! The HttpKernel Request-Response Flow

Watch HttpKernel::handle() step by step: hooking in with an event subscriber, the RequestEvent and RouterListener, the controller resolver, the argume...

Video CourseExternal
View resource
Article

Console Commands

Write your own console commands with the #[AsCommand] attribute, run the commands Symfony ships, and handle signals in long-running commands. The Cons...

ArticleExternal
View resource

Testing Symfony Applications

Chapter 10

Write unit, integration and application tests for a Symfony app with PHPUnit, KernelTestCase and WebTestCase. Seed test data with Foundry factories, reset the database between tests, and run end-to-end tests in a real browser with Panther.

Article

Testing

Write unit, integration and application tests: retrieve services in a KernelTestCase, make requests with the test client, log in users, configure a te...

ArticleExternal
View resource
Video Course

PHPUnit: Unit Testing with a Bite!

Learn PHPUnit through test doubles, handling exceptions and test-driven development. Recorded on PHPUnit 9 and Symfony 6.1, and PHPUnit 9 stopped gett...

Video CourseExternal
View resource
Video Course

PHPUnit: Integration Testing with Live Services

Test against real services with KernelTestCase: fetch services, set up and reset the test database, seed data with factories, test emails and test Mes...

Video CourseExternal
View resource
Video

The New Testing Landscape: Panther, Foundry & More

Hear how to choose tools and patterns for tests that need JavaScript or a database. From the talk abstract, not watched: it asks how to test the JavaS...

VideoExternal
View resource
Article

ZenstruckFoundryBundle Documentation

Write test data as factories and stories: reusable factory states, relationships, Faker, local development fixtures, database reset between tests, aut...

ArticleExternal
View resource
Tool

zenstruck/foundry

Find the source, releases and issues for Foundry, the fixture library for Symfony and Doctrine. The repository describes it as "A model factory librar...

ToolExternal
View resource
Article

End-to-End Testing

Run tests in a real browser with Panther: install web drivers, register the PHPUnit extension, create a test case, then read the advanced sections on...

ArticleExternal
View resource
Tool

symfony/panther

Find the source and releases for Panther, "a browser testing and web crawling library for PHP and Symfony" that drives real browsers such as Chrome an...

ToolExternal
View resource

Messenger and Async Work

Chapter 11

Send work to a queue and process it later: messages and handlers, transports, routing, retries, the failure transport and middleware. Then keep workers running in production with a process manager and run recurring tasks with the Scheduler component.

Article

Messenger: Sync & Queued Message Handling

Send a message to a handler now or later: create messages and handlers, route messages to transports, retry failures and save failed messages, add mid...

ArticleExternal
View resource
Video Course

Messenger! Queue work for Later

Build an async app with Messenger: dispatch messages, configure transports, run workers, retry failed messages, use the failure transport and middlewa...

Video CourseExternal
View resource
Video

Queues, busses and the Messenger component

Watch an introduction to message queues, message buses and Symfony's Messenger component, as a way to decouple your application logic from the framewo...

VideoExternal
View resource
Article

Scheduler

Run recurring tasks with the Scheduler component: attach recurring messages to a schedule, use cron expression, periodic and custom triggers or the #[...

ArticleExternal
View resource
Article

Messenger: Deploying to Production

Keep workers running in production: use Supervisor or systemd as a process manager, stop workers after N messages, a memory limit or a time limit, qui...

ArticleExternal
View resource

API Platform

Chapter 12

Build an API with API Platform: expose resources, add filters, shape the output with serialization groups, secure operations and read the generated OpenAPI documentation. Learn the concepts from a course on API Platform 3, then use the current 5.0 docs. A conference talk makes the case for API Platform when an API has to follow the HAL standard. GraphQL support is covered by the docs only.

Article

Getting Started With API Platform with Symfony

Follow the API Platform docs for Symfony: parameters and filters, the serialization process, security, GraphQL support and OpenAPI specification suppo...

ArticleExternal
View resource
Video Course

API Platform 3 Part 1: Mythically Good RESTful APIs

Build a REST API step by step: your first ApiResource, Swagger UI and OpenAPI, JSON-LD and Hydra, serialization groups, pagination, filters, validatio...

Video CourseExternal
View resource
Video

2025, an API Platform Odyssey

Watch a talk on building a REST API to the HAL standard: the speaker recalls a 2018 e-commerce project where nobody knew what HAL or HATEOAS meant, th...

VideoExternal
View resource

Symfony UX

Chapter 13

Build a server-rendered frontend with Symfony UX: reusable Twig Components, Stimulus controllers, page navigation with Turbo, and Live Components that re-render from the server. Learn the rules for structuring components, and try the interactive demos before you decide which packages to install.

Article

Symfony UX: JavaScript tools you'll love

Browse the Symfony UX packages, "PHP and JavaScript packages that solve everyday frontend problems, built on Stimulus and Turbo": Twig Components, Liv...

ArticleExternal
View resource
Article

Symfony UX Twig Components Documentation

Bind a PHP class to a template to build reusable pieces like an alert or a modal: props, attributes, anonymous components, blocks, mount hooks, comput...

ArticleExternal
View resource
Article

Component Architecture

Apply four rules to Symfony UX components: build a page from small composed components, keep each one independent of the page around it, pass data in...

ArticleExternal
View resource
Article

StimulusBundle Documentation

Add Stimulus controllers to a Symfony app: install the bundle, write controllers (TypeScript too), load controllers from UX packages, lazy-load contro...

ArticleExternal
View resource
Article

Symfony UX Turbo Documentation

Update pages without a full reload using Turbo Drive, Turbo Frames and Turbo Streams, and broadcast Doctrine entity changes to connected users through...

ArticleExternal
View resource
Article

Symfony UX Live Components Documentation

Build components that re-render on the server: when a component re-renders, the new HTML is "morphed" onto the existing elements on the page. The page...

ArticleExternal
View resource
Video Course

30 Days with LAST Stack

Build with the LAST stack: AssetMapper, Stimulus, Symfony UX packages, Turbo Drive, Frames and Streams, Tailwind CSS, Twig Components and Live Compone...

Video CourseExternal
View resource
Tool

Interactive Demos - Symfony UX

Browse the Symfony UX demos, each with its source code in PHP, Twig, JS and CSS, before you decide which packages to install. Free. Official Symfony U...

ToolExternal
View resource

EasyAdmin and Backoffice

Chapter 14

Build an admin area with EasyAdmin: dashboards, CRUD controllers, fields, filters, custom actions and permissions. Follow the course on EasyAdmin 4, then use the 5.x docs, which include an upgrade chapter.

Article

EasyAdminBundle Documentation

Build an admin area from dashboards, CRUD controllers, fields, filters and actions (custom, batch, permissions), then customize the design, security a...

ArticleExternal
View resource
Video Course

EasyAdmin! For an Awesomely Powerful Admin Area

Build an admin area from installation through configuring fields, upload fields, permissions, conditionally disabling an action, custom actions and a...

Video CourseExternal
View resource

HTTP Client, Mailer and Notifier

Chapter 15

Call other services with the HttpClient component, structure the client code around it and mock it in tests, send email through Mailer transports, and send SMS, chat and push notifications with Notifier. The Mailer course also covers async sending with Messenger and reacting to email events with webhooks.

Article

HTTP Client

Call other services with the HttpClient component: stream responses, send concurrent requests, multiplex responses, scope a client with ScopingHttpCli...

ArticleExternal
View resource
Video

API Platform Conference 2024 - Nicolas Grekas - Consuming HTTP APIs in PHP the Right Way!

Structure the code that calls another service over HTTP: map requests to your domain, build an SDK with a good developer experience, apply SOLID pract...

VideoExternal
View resource
Article

Simple API mocking with the Symfony HTTP client

Test code that calls an API without network calls: declare a scoped client, write a mock that extends MockHttpClient, swap it in for the test environm...

ArticleExternal
View resource
Article

Sending Emails with Mailer

Send email from a Symfony app: set up a transport, attach files, embed images, send calendar invitations, and send in the background with Messenger. F...

ArticleExternal
View resource
Article

Creating and Sending Notifications

Send notifications through SMS, chat, email, push and desktop channels, and configure failover or round-robin transports. Free. Official Symfony docs.

ArticleExternal
View resource
Video Course

Mailer and Webhook with Mailtrap

Send email with Mailer: async and retryable sending with Messenger, email assertions in functional tests, sending from a CLI command, the Webhook comp...

Video CourseExternal
View resource

Caching and Performance

Chapter 16

Cache computed values with the Cache component, cache whole responses with the HTTP cache and Symfony's reverse proxy, and profile requests with the Symfony Profiler and Blackfire. Check your server and application settings against the official performance checklists.

Article

Cache

Cache computed values with the Cache component: Cache Contracts versus PSR-6, PSR-16 interoperability, invalidation with cache tags, and computing cac...

ArticleExternal
View resource
Article

HTTP Cache

Cache whole responses with HTTP caching: expiration caching, validation caching, Edge Side Includes and Symfony's reverse proxy. The page names Varnis...

ArticleExternal
View resource
Article

Profiler

Inspect a request with the Profiler: its collectors report on the request, the logger, the routing and the cache, among others. The page warns never t...

ArticleExternal
View resource
Tool

What is Blackfire?

Profile and monitor a PHP app with Blackfire, which offers continuous profiling, monitoring, profiling and testing. The Symfony docs call it "a commer...

ToolExternal
View resource
Video Course

Blackfire.io: Revealing Performance Secrets with Profiling

Learn to profile with Blackfire: wall time and exclusive time, finding issues in the call graph, comparisons, recommendations, the N+1 problem with EX...

Video CourseExternal
View resource
Article

Performance

Work through the performance checklists: dump the service container into a single file, set up OPcache, optimize the Composer autoloader, and profile...

ArticleExternal
View resource
Article

5 Ways to optimize Symfony Baseline Performance

Check five things that slow every request: expensive service construction, slow kernel event listeners, sub-requests rendered in loops, work that shou...

ArticleExternal
View resource

Workflow and State Machines

Chapter 17

Model a business process with the Workflow component: define places and transitions, restrict transitions with guard events, and choose between a workflow and a state machine. Spot when boolean status columns should become a state machine, and see a workflow publish messages to another application with Messenger.

Article

Workflow (Symfony Docs)

Define a workflow or a finite state machine in Symfony config and move objects through it. Covers places and transitions, enums as places, weighted tr...

ArticleExternal
View resource
Video

PHP Dublin Meetup - Symfony Workflow Components presented by Bruno Souza

Watch a walk-through of the Workflow component: key concepts, building a workflow with the config DSL, strategies for integrating workflows into a Sym...

VideoExternal
View resource
Video

Knowing your State Machines

Recognize when application logic is a state machine: start from traffic-light style theory, then see how Symfony's Workflow component models places, t...

VideoExternal
View resource
Article

State replication with Symfony Workflow, Messenger, and RabbitMQ

See Workflow, Messenger and RabbitMQ work together: mark the places that must sync with place metadata, dispatch a Messenger message from a transition...

ArticleExternal
View resource

Deploying Symfony

Chapter 18

Deploy a Symfony app and know what has to happen on every deploy: check requirements, set environment variables, install vendors and warm the cache. Run it on Upsun or in Docker with FrankenPHP, and keep services free of state that leaks between requests in worker mode. Queue workers and scheduled tasks are covered in chapter 11.

Article

How to Deploy a Symfony Application

Walk through the checklist for any Symfony deploy: check requirements, configure environment variables, install vendors, clear and warm up the cache,...

ArticleExternal
View resource
Article

Deploy Symfony on Upsun Cloud

Deploy a Symfony app to Upsun, the host formerly called Platform.sh, and configure it: the Symfony integration, environment variables, workers, cron j...

ArticleExternal
View resource
Article

Running Symfony with FrankenPHP (Docker, worker mode, hot reload)

Run Symfony on FrankenPHP, an application server built on the Caddy web server: start from Symfony Docker or add a Caddyfile to a local project, enabl...

ArticleExternal
View resource
Article

Deploying FrankenPHP in production

Deploy a PHP app on a single server with Docker Compose: build the image with a Dockerfile, set the server name, get an automatic HTTPS certificate, a...

ArticleExternal
View resource
Article

Getting Symfony app ready for Swoole, RoadRunner, and FrankenPHP (no AI involved)

Reproduce the bug that worker mode introduces: a controller with a counter property returns 1, 2, 3 under a long-running worker and always 1 under PHP...

ArticleExternal
View resource
Tool

Symfony Docker

Start a Symfony project in Docker with FrankenPHP and Caddy using docker compose build and docker compose up, then read its docs folder and production...

ToolExternal
View resource
Article

Coding at the Speed of Thought: The New Era of Symfony Docker

See what Symfony Docker added in 2026: Dev Containers with Xdebug working in worker mode, FrankenPHP hot reloading that refreshes the browser when PHP...

ArticleExternal
View resource

Symfony AI

Chapter 19

Add AI features to a Symfony app with Symfony AI: call models from OpenAI, Anthropic and other providers through one Platform interface, build agents with tools, connect a coding agent to your app with Mate, and run MCP servers and clients with the MCP Bundle. Follow cookbook guides for tool calling, RAG, multi-agent setups and chatbot memory. Symfony AI is at 1.0.0-BETA1 (announced 2026-10-26) and its backward compatibility promise starts at 1.0.0 final, so check the docs for the version you install.

Article

Symfony AI Documentation

Read the overview of the Symfony AI components: Platform (one interface to models from OpenAI, Anthropic, Google Gemini, Azure and more), Agent (agent...

ArticleExternal
View resource
Article

Cookbook

Work through eleven guides with code: the AI Bundle fast track, tool calling with agents, a dynamic toolbox, human-in-the-loop tool confirmation, mult...

ArticleExternal
View resource
Article

Symfony AI 1.0.0-BETA1 + AI & MCP Hackathon

Read what the first 1.0 pre-release means: the feature set for 1.0 is settled, the work from here is fixing rather than redesigning, and the backward...

ArticleExternal
View resource
Article

Symfony AI Spotlight: One API to Rule Them All

Learn the Platform component, the first post in a series written while Symfony AI was approaching 1.0. It gives your PHP app one vendor-agnostic inter...

ArticleExternal
View resource
Article

Symfony AI Spotlight: Mate, an Agent's Way into Your Runtime

Give a coding agent access to a running Symfony app with Mate: it started as an MCP dev server exposing the profiler, the logs and the container, and...

ArticleExternal
View resource
Article

MCP Bundle

Add the Model Context Protocol to a Symfony app with the bundle built on the official mcp/sdk: your application can act as an MCP server that exposes...

ArticleExternal
View resource
Video

Symfony AI in Action

Watch a talk on bringing AI-powered and agentic features, beyond chatbots, into PHP applications with Symfony AI, with practical ideas and starting po...

VideoExternal
View resource

Upgrading Symfony

Chapter 20

Move a Symfony app to a newer version: make the code deprecation-free, upgrade a minor or major version with Composer, and know when versions are released and how long they are supported. Follow a Symfony 7 to 8 upgrade on video, read how a Symfony 2.8 app was taken to 7.2, and let Rector apply upgrade rules for the versions in your composer.json, or write your own rules.

Article

Upgrading a Major Version (e.g. 6.4.0 to 7.0.0)

Upgrade to a new major version in three steps: make your code deprecation-free, update to the new major version via Composer, then update your code to...

ArticleExternal
View resource
Article

Upgrading a Minor Version (e.g. 6.3.0 to 6.4.0)

Upgrade to a new minor version in two steps: update the Symfony libraries via Composer, then update your code to work with the new version. Minor upgr...

ArticleExternal
View resource
Article

Preparing for Symfony 7.4 and Symfony 8.0

Plan the move to Symfony 8.0: 8.0 is 7.4 with every deprecation removed, so upgrade to 7.4 first, check the deprecations your app triggers (the post u...

ArticleExternal
View resource
Video Course

Upgrading to Symfony 8

Upgrade a real Symfony 7 app to Symfony 8: PHP 8.4 and recipe updates, moving to Symfony 7.4, upgrading Doctrine and switching to native lazy objects,...

Video CourseExternal
View resource
Article

The Release Process

Learn when Symfony versions ship and how long each is supported: standard versions get 8 months of bug fixes and security fixes, long-term support ver...

ArticleExternal
View resource
Article

Composer Based Sets

Let Rector choose upgrade rules from the versions in your composer.json: enable `withComposerBased()` for Symfony, Doctrine, Twig and PHPUnit instead...

ArticleExternal
View resource
Book

Rector - The Power of Automated Refactoring

Learn how Rector works and write your own rules: tokenizing, parsing and changing PHP code as an AST, creating a rule and developing it test-first, co...

BookExternal
View resource
Article

Off the Beaten Path to Upgrade Symfony 2.8 to 7.2

Read how one app was upgraded across many major versions: reach the highest Symfony version your PHP version allows, raise PHP one minor step at a tim...

ArticleExternal
View resource

Architecture in Symfony

Chapter 21

Split a Symfony app by responsibility: send commands, queries and events over separate Messenger buses, learn Domain-Driven Design concepts for PHP teams, see how a monolith is split into modules, and read how ports and adapters keep your code independent of the framework, and how CQRS splits the write side from read models. Learn rules for designing objects, and enforce decoupling rules with static analysis.

Video

Domain-Driven Design: The Basics

Learn what Domain-Driven Design is, what the blue book and the red book are, and how DDD can be applied to your project. Not specific to Symfony. Summ...

VideoExternal
View resource
Article

Multiple Buses, Command & Event Buses

Configure more than one Messenger bus, such as separate command, query and event buses, and control the middleware of each. Explains splitting command...

ArticleExternal
View resource
Article

Decoupling a monolithic PHP application: a practical example

Follow a Symfony application from a big ball of mud to a modular monolith, then to service-oriented and event-driven architecture. Uses Deptrac to enf...

ArticleExternal
View resource
Book

Object Design Style Guide

Learn rules for designing objects in any object-oriented language: constructing objects, defining methods, changing and exposing state, and a catalog...

BookExternal
View resource
Book

Advanced Web Application Architecture

Learn design patterns and the architectural concepts they lead to, including layers and ports and adapters (hexagonal architecture), and how to verify...

BookExternal
View resource
Book

Recipes for Decoupling

Keep your code independent of your web framework, CLI framework, form validation, ORM and test framework, then enforce the rules with custom PHPStan r...

BookExternal
View resource
Book

Domain-Driven Design in PHP - 2nd Edition

Learn DDD with PHP 8.5 examples: the tactical patterns (entities, value objects, services, domain events, aggregates, factories, repositories and appl...

BookExternal
View resource
Book

CQRS by Example

Split an application into a write side and read models: commands, command handlers and a command bus, queries with their own bus, projections that kee...

BookExternal
View resource

Building Symfony Bundles

Chapter 22

Build a reusable bundle: lay out its directory structure, load services and configuration from a bundle extension, define a configuration tree and validate its configuration, prepend settings to other bundles, test it against several Symfony versions, and publish it on Packagist. A book on package design covers when classes belong in the same package and which packages may depend on each other.

Article

Best Practices for Reusable Bundles

Structure a reusable bundle so it is easy to configure and extend: naming, directory structure, tests, continuous integration, routing, templates, tra...

ArticleExternal
View resource
Article

The Bundle System

Create a bundle class that extends AbstractBundle, require other bundles, and learn the bundle directory structure. Shows how to point Composer at a l...

ArticleExternal
View resource
Article

How to Load Service Configuration inside a Bundle

Load a bundle's services from its bundle class or from an extension class, and use configuration to change the services. Free. Official Symfony docs.

ArticleExternal
View resource
Article

How to Create Friendly Configuration for a Bundle

Define the options users set in config/packages for your bundle. New bundles do it in the AbstractBundle class with `configure()` and `loadExtension()...

ArticleExternal
View resource
Article

How to Simplify Configuration of Multiple Bundles

Let one bundle extension prepend settings for other bundles, for example to set the same entity manager name in several bundles or to enable a feature...

ArticleExternal
View resource
Video Course

Symfony Bundle Development: Share the Love

Build a Symfony bundle from an empty folder: services, entities, configuration and configuration validation, a Twig filter, caching and warmup command...

Video CourseExternal
View resource
Book

Principles of Package Design

Apply the five SOLID principles to class design, then use package cohesion principles to decide which classes belong in a package and when to split it...

BookExternal
View resource

Going to the Source

Chapter 23

Hear where Symfony is heading from its creator, then follow the project as it ships. Watch Fabien Potencier's SymfonyCon Amsterdam 2025 keynote, browse the official conference channel, and read the Symfony blog, the 2025 year in review and Matthias Noback's writing on architecture.

Video

Symfony on YouTube

Watch the conference recordings and keynotes that Symfony posts. Recent conference replays are sold separately on live.symfony.com, so the channel doe...

VideoExternal
View resource
Video

20 Years of Symfony, What's Next?

Hear Symfony's creator look back at 20 years of Symfony and share his vision for what comes next for the framework, the ecosystem and the PHP communit...

VideoExternal
View resource
Article

Symfony Blog

Follow Symfony releases, new features and announcements, including the "New in Symfony" posts that explain features in the next minor version. Free. O...

ArticleExternal
View resource
Article

Symfony 2025 Year in Review

See what the Symfony project shipped in 2025: Symfony 7.3, 7.4 and 8.0, 38 maintenance versions, six conferences, six new Core Team members and the st...

ArticleExternal
View resource
Article

Matthias Noback's Blog

Read posts on hexagonal architecture, CQRS and command buses, and decoupling code from the framework, using the blog's tag pages. Free. By Matthias No...

ArticleExternal
View resource