---
title: "Symfony and Drupal: Why Drupal Is Based on Symfony"
lang: en
type: knowledge
canonical: https://www.arocom.de/en/knowledge/drupal/symfony
alternate: https://www.arocom.de/wissen/drupal/symfony
author: "Axel Roth"
last_updated: 2023-06-28
---

# Symfony and Drupal: Why Drupal Is Based on Symfony

Symfony is a PHP framework that forms the technical foundation of
Drupal. Since Drupal 8, the CMS uses Symfony components for routing,
HTTP handling, dependency injection, and event system. arocom has
worked with Drupal since 2012 and benefits from Symfony bringing
proven software patterns to the CMS.

## Symfony and Drupal: Why Drupal Is Based on Symfony

When Drupal 8 appeared in 2015, it was a turning point. Drupal
switched from its own codebase to Symfony components as its
technical foundation. This decision fundamentally changed
Drupal, for the better.

## What Symfony Is

Symfony is an open-source PHP framework developed by
SensioLabs in France. It provides reusable components
for common web development tasks: routing, forms,
security, database abstraction, and more.

Symfony is the de facto standard in the professional
PHP ecosystem. Besides Drupal, Laravel (partially),
Ibexa, and numerous enterprise applications also use Symfony components.

## Which Symfony Components Drupal Uses

**HttpFoundation.** Encapsulates HTTP requests and responses in
clean objects. Drupal processes every request through
Symfony's request object.

**Routing.** Defines which code responds to which URL.
Drupal modules register their routes via YAML files,
a Symfony pattern.

**Dependency Injection.** Services are registered centrally
and injected on demand. This makes Drupal code testable and
modular.

**EventDispatcher.** Drupal uses Symfony's event system to
react to actions, from page requests to
cache invalidation.

**Serializer.** Converts Drupal entities to JSON, XML, or
other formats. The foundation for Drupal's REST API.

## What This Means for You

**Code quality.** Symfony enforces modern PHP patterns:
object-oriented programming, interfaces, dependency
injection. The result is more maintainable, testable code.

**Developer pool.** PHP developers with Symfony experience
can quickly get up to speed with Drupal. This expands the
pool of available specialists.

**Future-proofing.** Symfony has a fixed release cycle
with long-term support. Drupal benefits from Symfony's
stability promise and security updates.

**Interoperability.** Symfony bundles and PHP libraries
can be integrated into Drupal. The PHP ecosystem is
open to Drupal.

## Planning a Drupal Project?

arocom has been developing on the basis of Drupal and Symfony
since 2012. The [Future Check](https://www.arocom.de/en/future-check) clarifies how
your platform benefits from this architecture. From 2,500 EUR
plus VAT, creditable toward the follow-up project.

**From arocom projects:**

- A scientific society with a member area, publications, and events needs workflows that handle academic content cleanly. We delivered this for DGGO on Drupal 11 with 19 custom modules, moderation, DOC export for print publications, trainer management, member access.
- An event platform that doesn't need an external tool like Cvent or Eventbrite? For Gentner, yes: Drupal 11 with Smart Date, ECA workflows, AddToCal, and a full Geolocation stack. 12 custom modules tie it all together, registration, program, geocoding, calendar sync.

### Do I need to know Symfony to use Drupal?

No. Editors and site builders work with Drupal's interface. For module development, Symfony knowledge is helpful but not mandatory, Drupal documents the relevant patterns extensively.

### Is Drupal a Symfony project?

Drupal uses Symfony components but is an independent project with its own community, its own release cycle, and its own architecture. Symfony is the foundation, not the application.

### Which Symfony version does Drupal use?

Drupal 11 uses Symfony 7. With each Drupal major release, the Symfony components are updated to benefit from improvements and security updates.

## Read more

- [OOP in Drupal](https://www.arocom.de/en/knowledge/drupal/oop-drupal): Object-oriented patterns in the CMS
- [PHP in the Drupal context](https://www.arocom.de/en/knowledge/development/php): The programming language behind Drupal
- [Why Drupal?](https://www.arocom.de/en/why-drupal): The detailed analysis
