docs(articles): SEO titles, intros and a section preview image for From Magento to Symfony
en/articles/magento-to-symfony/README.md
+5
−0
From Magento to Symfony
A reference for a developer who knows Magento 2 inside out but hasn't written Symfony yet. Every concept is explained through what you already know: di.xml, plugins, models with collections, queues, Web API.
The examples target Symfony 7.4 LTS and 8.x, Doctrine ORM 3 and PHP 8.2+ (8.4 for Symfony 8).
Equivalents at a glance
| Magento | Symfony |
|---|---|
bin/magento setup:upgrade |
bin/console doctrine:migrations:migrate |
bin/magento setup:di:compile |
automatic, on cache:warmup |
bin/magento queue:consumers:start |
bin/console messenger:consume async |
bin/magento dev:di:info Foo |
bin/console debug:container Foo |
etc/webapi.xml |
#[Route] + Serializer or API Platform |
Contents
Basics
- A change of mindset: what carries over and what you need to unlearn.
- Glossary: Magento concepts and their equivalents.
- Project structure and the life of a request.
Application core
- DI container: preference, virtualType, plugins, pools.
- Configuration and environments.
- Routing and controllers.
- Events.
Data and access
- Doctrine ORM: the hardest part of the switch.
- Security.
- API and serialization.
Infrastructure
Quality
Practice
- A three-week plan and a self-check checklist.
- How 7.4 and 8.1 differ.
- Sources.