
Preview the course outline and aim for a functional ecs-like app with posts, likes, follows, and comments, while mastering controllers, routing, templates, migrations, fixtures, repositories, param converters, relations, and security.
Understand how PHP runs on a remote server, interacts with databases, and generates HTML, and learn why Symfony provides a framework with reusable components and structure to save repetitive tasks.
Discover why developers choose the Symfony framework, including its maturity, stability, strong community, and long-term support, and learn a high-level MVC workflow from request to response.
Engage with the course resources and community via the Q&A, Discord, and GitHub source code. Review per-lesson code changes, follow the recommended order, and set up tools across operating systems.
Learn to use Visual Studio Code as a cross-platform, open-source code editor, and master installing extensions, themes, and fonts to tailor your Symfony development workflow.
Set up a Windows development environment for Symfony by installing Composer and Docker to run a MySQL container, with optional alternatives like Psalm, Symfony Docker, and cloud-based MySQL options.
Install and configure php 8.2 on Windows and set up composer by downloading the non thread safe php zip, extracting it, updating the path, and verifying with php -v.
Enable the pdo_mysql extension in your php.ini, locate the file with php -i, edit and save, then restart the terminal to connect to MySQL locally.
Install composer on Windows to create PHP projects and manage libraries. Use the Windows installer, point to your PHP path, then verify with composer.
Install and run Docker on Windows by installing Docker Desktop, setting up WSL 2 kernel, and restarting the system to launch Docker successfully.
Install the Symfony CLI on Windows using scoop or binaries, verify the installation, then use the CLI to create projects and run a local development server.
Set up your Mac for symphony development by installing PHP, composer, and Docker, with optional tools like sump, the Symphony Docker project, and planet scale for MySQL.
Install homebrew, a macOS package manager, by copying the command from the page into the terminal and entering your password if prompted; then use it to install other packages.
Install php on Mac using the homebrew package manager with brew install php and verify with php -v. Update homebrew and run brew upgrade php to keep php current.
install composer on macOS after PHP is installed, using homebrew to install or upgrade the PHP package manager that handles third party libraries and frameworks.
Determine your mac chip (apple silicon or intel), install the matching docker for macOS, drag to applications, replace if prompted, then launch docker desktop and enter your password if asked.
Install the Symphony cli with homebrew, verify your system supports creating symphony apps, and learn to create projects, start the built-in server, and check security vulnerabilities.
Learn to start a new Symfony project by installing the Symfony CLI, creating a project with Symfony new or composer create-project, and launching the built-in server while checking security.
Explore the Symfony directory structure from bin to vendor, including config, public, z (src), var, and lock folders, plus composer.json, composer.lock, and the .env file.
Explore how a Symfony application processes a browser request through an http server, uses routing to controllers, and generates responses using templates in formats like HTML, JSON, or RSS.
Learn how Symfony controllers handle requests and return responses, create a hello controller with a namespace, define actions, and configure routes via YAML, then inspect routes with the debug router.
Define routes with PHP 8 attributes above controller actions, name each route, and pass parameters via curly braces, then return string responses from actions.
Define parameter requirements to enforce numeric ids with regular expressions and return a 404 for type mismatches. Add an optional limit and use array slice to fetch messages.
Learn to render Twig templates in Symfony using the render method and pass data, after installing Twig with Composer and organizing templates under the templates folder.
Discover how Twig template inheritance lets you extend a base template, define blocks like body and title, and render pages without duplicating HTML across templates.
Explore Twig control structures, using for loops to iterate over messages and if statements to handle empty lists, while keeping data rendering and presentation in templates rather than controllers.
Explore Twig filters and functions in Symfony, using the pipe to apply length and slice, passing raw data to templates, and using date and state functions.
Learn how to use twig functions to include partial templates with the include function, render across templates, pass data to includes, and inherit the parent context.
Generate links to routes in a Symfony app by using the path function with route names and parameters, avoiding hardcoded URLs in templates and controllers.
Explore how the Maker Bundle generates controllers and templates, speeding Symfony development, follow singular controller naming, and preview routes for a micro post application.
Symfony profiler is a must-have development tool that collects requests, performance, and server data, showing a bottom toolbar with timing and route details, and should never run in production.
Explore relational databases like PostgreSQL or MySQL using tables, columns, and rows, and learn how Doctrine ORM maps PHP classes to tables, creating and saving rows in Symfony.
Explore how Docker uses images and containers to run databases in isolation, enabling multiple PHP versions and tools like Docker Compose and Adminer for streamlined development.
Learn to run a MySQL/MariaDB server with Docker Compose, configure Symfony to connect with Doctrine, and verify the connection via the Symfony console.
Create an entity with the maker tool and map it to a database table using Doctrine ORM, defining fields like title, text, and created date with an id primary key.
Explore how Doctrine migrations create and apply database changes in a Symfony project, including generating migration files, applying and rolling back migrations, and using status checks.
Seed your Symfony app with fake data using Doctrine fixtures. Use a load method to create micro post entities, persist them, and flush to populate the database for testing.
Learn about Symfony 6.3 changes, including removal of add and save methods. Use the entity manager with persist and flush to store and update data.
Explore how Doctrine repositories abstract data access, support finding all and finding by fields, and handle adding, updating, and removing entities via the entity manager in Symfony.
Discover how Symfony 6.2 enables automatically fetching objects by type-hinting an entity in a controller, with no extra bundle needed and the map attribute to configure fetching.
Use the param converter to automatically fetch a single micro post after installing the Framework Extra Bundle. It defaults to the primary key and supports other fields for retrieval.
Build a Symfony micro post app by fetching posts from the database with repository find all method and rendering index and show templates to display title, text, and creation date.
Learn the Symfony 6.2 change: renderForm is deprecated in favor of render for form rendering, with code illustrating an add method in the micro post controller.
Implement and render Symfony forms for creating micro posts using the form builder and form types, then process and validate submissions to store data in the database.
Handle form submission in Symfony by binding the request to the form, validating data and constraints, checking isSubmitted and isValid, retrieving data, and flashing a message with a possible redirect.
Add and render flash messages in Symfony controllers using addFlash with a success category, render them in the base template via app.flashes, and redirect by route names for one-request display.
Master granular form rendering in Symfony by using functions like form start, form end, label, widget, and errors, and customize fields with variables, labels, and actions for flexible styling.
Explore how Symfony form themes customize rendering of labels, widgets, and errors, with Bootstrap and Tailwind options configured via YAML, and how to apply custom classes for styling.
Implement an edit form for micro posts by reusing the add action, using the param converter to load the post by id, and persisting changes with the entity manager.
Create reusable form types for an entity using Symfony's maker bundle, configure the form with a data class, and instantiate it via createForm with the micro post type.
Choose Tailwind CSS, a utility-first framework, and learn how predefined utility classes create responsive designs, hover and focus states, and dark mode with a tiny footprint.
Master tailwind css setup, configure dark mode with a class, and apply responsive utility classes, flexbox, and typography to style headers, breadcrumbs, and flash messages.
Learn to style the micro post list using a responsive CSS grid with tailwind, adding post text, date formats, like button mockups, and dark mode tweaks across mobile to desktop.
Style the micro post forms with tailwind, apply label and input styling for dark mode, and add temporary links via path helpers, plus base layout tweaks.
Add breadcrumbs navigation by refactoring to a post partial and using include to render posts, while updating base templates to display post, adding post, and editing post pages.
Define and apply a custom Symfony form theme by creating render blocks for errors in a tweak, then enable it via tweak.yaml to style form errors with bootstrap or tailwind.
Install the validator component with composer require symphony slash validator, enable HTML5 client validation, and apply PHP 8 attributes like not blank and length to validate data before saving.
Discover Doctrine relations and learn how one-to-many, one-to-one, and many-to-many associations between posts, comments, and user profiles are mapped and managed by Doctrine, using PHP eight attributes.
Create a one-to-one relationship between user and user profile, generate and migrate the entities, and enforce a bidirectional link with a foreign key and unique index.
Explore the one-to-one relationship between user and user profile in Doctrine, including mapped by, target entity, and the joint column attribute, and understand cascade persist and remove.
Learn how to implement a one-to-many relation between a micro post and its comments in Symfony using Doctrine, with orphan removal and migrations to manage associated records.
Explore a Doctrine one-to-many relation between micro posts and comments, focusing on the owning side, cascade persist, lazy versus eager loading, and adding or removing comments via repositories.
Demonstrates implementing a many-to-many relationship between users and micro posts with a join table, enabling likes from many users to many posts.
Implement a post–comment relationship in Symfony by generating a comment form, wiring the controller and repository, validating input, and displaying comments on the post page.
Doctrine abstracts away the SQL queries nicely. Though, sometimes using these abstractions can become costly. Let's see how to avoid running into issues when inadvertently making too many queries.
Let's display comments below the posts. We will create a great-looking timeline design using Tailwind CSS.
A high level overview of the authentication (logging in) and authorization (who can do what) features in Symfony. Gives an overview of the whole section and introduces some concepts.
User passwords need to be hashed when stored. Let's see how to do that, and by the way, how to create some user accounts in the fixtures.
Build a custom symphony console command to create users from the command line, defining required email and password arguments, and implementing configure and execute with user feedback.
Configure the Symfony security to authenticate users via a login form, render a login controller and template, and handle last username and errors for a smooth sign-in experience.
Learn to log out an authenticated user by configuring a logout path under the firewall and redirecting to the login page. Use a PHP 8 attribute in the controller.
Relate micro posts and comments to the user by adding many-to-one relations, learn to get the currently authenticated user, and explore access control in Symfony using maker bundle and migrations.
Recreate the schema during development and clear the doctrine migrations versions table to resolve unrun migrations; use migrations only when a project has data and is deployed.
Learn to associate posts and comments with the currently authenticated user using the get user method, and view authentication in templates via app user.
Learn how Symfony's role system governs access with implicit and explicit roles, including public access, is authenticated fully, and role hierarchy.
Add a logout link in the base layout, display post and comment usernames, and add a created date for comments with a constructor-based default and consistent date formatting.
Explore how to implement flexible permission handling with Symfony voters. Learn to create a micro post voter, check attributes and subjects, inject the security component, and review access decisions.
Go beyond tutorials. Build a real Symfony application from the ground up.
Symfony is one of the most powerful and flexible PHP frameworks in the world — used by companies like Spotify, BlaBlaCar, and Trivago. In this hands-on course, you’ll master Symfony with modern PHP 8 by building a Twitter-inspired social media platform that’s fully functional, deployable, and portfolio-ready.
We start from zero — setting up your environment and walking through Symfony’s structure — and quickly move to building real features:
Routing & Controllers for clean, organized code
Twig Templates for dynamic, reusable user interfaces
Doctrine ORM for efficient database handling
Tailwind CSS for beautiful, responsive styling
User Authentication & Security with Symfony best practices
Dependency Injection for scalable, maintainable code
Interactive features like likes, follows, and user profiles
You’ll gain production-ready skills while creating a project you can actually show to employers or clients. This is not a set of disconnected code snippets — it’s a full application, built step-by-step, with clear explanations for every concept.
Who’s this for?
PHP developers ready to master Symfony
Full-stack devs looking to strengthen backend skills
Anyone with basic PHP knowledge wanting to build real-world apps
By the end, you’ll have mastered the Symfony workflow from setup to deployment — and have a social web app to prove it.