Symfony #
Category #
Frameworks & Tools
Description #
Symfony is a robust PHP framework known for its reusable components, enterprise-ready architecture, and wide adoption across large-scale applications.
History #
Created by Fabien Potencier and released in 2005, Symfony quickly became one of the most influential PHP frameworks. It powers Drupal, Laravel (via components), and many enterprise-grade systems.
Hello World Code #
use Symfony\Component\HttpFoundation\Response;
$response = new Response('Hello, World!');
$response->send();
How to Run #
Option 1: Online
https://phpfiddle.org
Option 2: Local
composer create-project symfony/skeleton hello-world
cd hello-world
symfony server:start
Key Concepts #
- Full-stack or microservice-ready
- Reusable, decoupled components
- MVC architecture
- Routing, templating (Twig), forms
- Doctrine ORM support
- Built-in CLI and dev tools
- Testing tools and profiler
- Dependency injection container
- YAML and XML config options
- Composer-native ecosystem
Try It Online #
Fun Facts #
- Symfony components are used in Laravel, Drupal, Magento, and even Composer itself.
- It offers over 50 reusable packages, such as the HttpFoundation and Console components.
- Symfony is enterprise-certified, powering high-security apps in banking and e-commerce.
- The Symfony Insight service helps teams monitor code quality and performance.
- The annual SymfonyCon conference gathers thousands of devs from around the world.