From Magento to Symfony

← From Magento to Symfony

Ashterix

docs(articles): English translation of From Magento to Symfony

en/articles/magento-to-symfony/README.md new file +54 āˆ’0

1 + # From Magento to Symfony
2 +
3 + 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.
4 +
5 + The examples target Symfony 7.4 LTS and 8.x, Doctrine ORM 3 and PHP 8.2+ (8.4 for Symfony 8).
6 +
7 + ## Equivalents at a glance
8 +
9 + | Magento | Symfony |
10 + |---|---|
11 + | `bin/magento setup:upgrade` | `bin/console doctrine:migrations:migrate` |
12 + | `bin/magento setup:di:compile` | automatic, on `cache:warmup` |
13 + | `bin/magento queue:consumers:start` | `bin/console messenger:consume async` |
14 + | `bin/magento dev:di:info Foo` | `bin/console debug:container Foo` |
15 + | `etc/webapi.xml` | `#[Route]` + Serializer or API Platform |
16 +
17 + ## Contents
18 +
19 + ### Basics
20 +
21 + - [A change of mindset](basics/mindset.md): what carries over and what you need to unlearn.
22 + - [Glossary](basics/glossary.md): Magento concepts and their equivalents.
23 + - [Project structure](basics/structure.md) and [the life of a request](basics/lifecycle.md).
24 +
25 + ### Application core
26 +
27 + - [DI container](core/di.md): preference, virtualType, plugins, pools.
28 + - [Configuration and environments](core/config.md).
29 + - [Routing and controllers](core/routing.md).
30 + - [Events](core/events.md).
31 +
32 + ### Data and access
33 +
34 + - [Doctrine ORM](data/doctrine.md): the hardest part of the switch.
35 + - [Security](data/security.md).
36 + - [API and serialization](data/api.md).
37 +
38 + ### Infrastructure
39 +
40 + - [Queues and cron](infrastructure/async.md).
41 + - [Cache](infrastructure/cache.md).
42 + - [CLI and deployment](infrastructure/cli.md).
43 +
44 + ### Quality
45 +
46 + - [Tests](quality/testing.md).
47 + - [Debugging](quality/debug.md).
48 + - [Pitfalls](quality/traps.md): where Magento experience most often lets you down.
49 +
50 + ### Practice
51 +
52 + - [A three-week plan](practice/plan.md) and a self-check checklist.
53 + - [How 7.4 and 8.1 differ](practice/versions.md).
54 + - [Sources](practice/sources.md).