Build a Symfony Social Network

Build Keystone Commons, a neighborhood social network with Symfony, Twig, Tailwind, Doctrine, PostgreSQL, Security form login, PHP-FPM, Nginx, VPS.

  • Difficulty Intermediate
  • Parts 12
  • Stack Symfony, Twig, Tailwind, Doctrine, PostgreSQL, Security form login, PHP-FPM, Nginx, VPS

How this project works

Keystone Commons is the Symfony remake of Westloop: a neighborhood social network with accounts, profiles, follows, likes, comments, a following timeline, search, notices, and a real Ubuntu VPS deploy. Each numbered folder in fcc-symfony-social is a working snapshot.

The stack, and why these tools

JobChoiceWhy
Language / frameworkPHP, Symfony 7Doctrine and the Security component are the PHP counterpart to Django’s ORM + auth. Voters protect compose and delete. PHP-FPM is the VPS default.
DatabasePostgreSQLFollows, likes, and comments need foreign keys and unique pairs. SQLite is only for the first laptop boot.
CSSTailwind CSSFeeds, avatars, and a sticky nav are layout-heavy. Utilities stay in the templates you already edit.
JavaScriptHTMX + Alpine.jsTwig fragments + HTMX. Stimulus is fine if you already use it; Alpine is enough for the menu.
AuthenticationSymfony Security form loginform_login and password hashers in security.yaml. Never roll a raw users table.
Process / proxyPHP-FPM, Nginx, Let’s EncryptSame VPS shape as Westloop: one app process, Postgres on localhost, Nginx for TLS and static/media files.
Hosting / DNSHetzner Cloud CX22 (or Contabo / DigitalOcean), Cloudflare Registrar + DNSYou own the box. PaaS is easier and teaches less.
EmailConsole locally, Postmark in productionPassword reset must leave the laptop.

If you already finished the Symfony blog, keep going — this project adds a social graph and a VPS ship, not another CRUD journal.

Open GitHub repo →

Parts in order

Work through the parts in sequence. Each lesson explains the ideas, then points you to a runnable GitHub snapshot.