Symfony Mastery
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 1Install 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.
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...
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...
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...
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...
Symfony CLI
Run a local web server with HTTPS, connect Docker services and environment variables, manage several PHP versions, and run background workers. `symfon...
The Symfony Framework Best Practices
Compare your app with the Symfony project's recommendations: the default directory structure, environment variables for infrastructure configuration,...
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...
Routing and Controllers
Chapter 2Define 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.
Routing
Write routes as attributes and look up the rest as you need it: matching HTTP methods, route parameters with requirements, optional parameters, priori...
Controller
Write a controller and return responses: redirects, rendered templates, JSON and streamed files. Covers the AbstractController base class, fetching se...
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...
How to Define Controllers as Services
Register controllers as services without extending AbstractController: the `#[AsController]` attribute, the `controller.service_arguments` tag and inv...
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 `#...
Twig and Templates
Chapter 3Write 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.
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...
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...
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...
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...
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...
Doctrine ORM
Chapter 4Map 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.
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...
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...
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...
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...
DoctrineMigrationsBundle Documentation
Run Doctrine Migrations from the Symfony console: installation, configuration, usage, running migrations during deployment, skipping migrations, migra...
Doctrine Events
Choose between the three ways to react to Doctrine events: lifecycle callbacks on the entity, entity listeners and lifecycle listeners. Callbacks cann...
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...
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...
Forms
Chapter 5Build 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.
Forms
Learn how forms work as a "bidirectional mapping layer between your PHP objects (or arrays) and HTML forms": form classes, rendering, processing, vali...
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...
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...
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...
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...
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...
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(...
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...
Validation
Chapter 6Put 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.
Validation
Learn the two ideas behind the Validator component, constraints and validators, then use them on properties, getters and classes. Covers validating ob...
Validation Constraints Reference
Look up the constraints "natively available in Symfony", grouped as Basic, String, Comparison, Number, Date, Choice, File, Financial, Doctrine and Oth...
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...
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...
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...
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...
Security
Chapter 7Set 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.
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...
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...
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...
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...
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...
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...
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...
Dependency Injection and the Container
Chapter 8Define 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.
Service Container
Learn how services are defined and injected: `autowire`, `autoconfigure`, scalar injection, expressions, public versus private services and linting th...
Service Tags
Understand tags as labels that mark a service's purpose, such as `twig.extension`. Covers autoconfiguring tags, adding attributes to tags, referencing...
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,...
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...
Dependency Injection #[Attributes]
Configure services with attributes instead of YAML: `AutowireLocator`, `AutoconfigureTag` and `AsTaggedItem`, `AutowireIterator`, `AsAlias`, `AsDecora...
Service Decoration
Replace or wrap a service without changing the original class. Covers decorating services, accessing the decorated service, decoration priority, decor...
The Kernel, Events and the Console
Chapter 9Follow 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.
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,...
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...
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...
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...
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...
Testing Symfony Applications
Chapter 10Write 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.
Testing
Write unit, integration and application tests: retrieve services in a KernelTestCase, make requests with the test client, log in users, configure a te...
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...
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...
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...
ZenstruckFoundryBundle Documentation
Write test data as factories and stories: reusable factory states, relationships, Faker, local development fixtures, database reset between tests, aut...
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...
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...
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...
Messenger and Async Work
Chapter 11Send 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.
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...
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...
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...
Scheduler
Run recurring tasks with the Scheduler component: attach recurring messages to a schedule, use cron expression, periodic and custom triggers or the #[...
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...
API Platform
Chapter 12Build 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.
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...
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...
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...
Symfony UX
Chapter 13Build 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.
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...
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...
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...
StimulusBundle Documentation
Add Stimulus controllers to a Symfony app: install the bundle, write controllers (TypeScript too), load controllers from UX packages, lazy-load contro...
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...
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...
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...
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...
EasyAdmin and Backoffice
Chapter 14Build 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.
EasyAdminBundle Documentation
Build an admin area from dashboards, CRUD controllers, fields, filters and actions (custom, batch, permissions), then customize the design, security a...
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...
HTTP Client, Mailer and Notifier
Chapter 15Call 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.
HTTP Client
Call other services with the HttpClient component: stream responses, send concurrent requests, multiplex responses, scope a client with ScopingHttpCli...
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...
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...
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...
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.
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...
Caching and Performance
Chapter 16Cache 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.
Cache
Cache computed values with the Cache component: Cache Contracts versus PSR-6, PSR-16 interoperability, invalidation with cache tags, and computing cac...
HTTP Cache
Cache whole responses with HTTP caching: expiration caching, validation caching, Edge Side Includes and Symfony's reverse proxy. The page names Varnis...
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...
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...
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...
Performance
Work through the performance checklists: dump the service container into a single file, set up OPcache, optimize the Composer autoloader, and profile...
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...
Workflow and State Machines
Chapter 17Model 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.
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...
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...
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...
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...
Deploying Symfony
Chapter 18Deploy 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.
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,...
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...
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...
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...
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...
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...
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...
Symfony AI
Chapter 19Add 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.
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...
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...
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...
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...
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...
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...
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...
Upgrading Symfony
Chapter 20Move 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.
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...
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...
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...
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,...
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...
Composer Based Sets
Let Rector choose upgrade rules from the versions in your composer.json: enable `withComposerBased()` for Symfony, Doctrine, Twig and PHPUnit instead...
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...
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...
Architecture in Symfony
Chapter 21Split 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.
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...
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...
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...
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...
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...
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...
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...
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...
Building Symfony Bundles
Chapter 22Build 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.
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...
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...
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.
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()...
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...
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...
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...
Going to the Source
Chapter 23Hear 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.
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...
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...
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...
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...
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...