📜 ⬆️ ⬇️

A quick overview of symfony. Relevance. Should I try?

All good! We are launching the third partnership course - PHP Developer , where we together with Avito prepared the program, and now we are thinking whether we should do a special course on frameworks separately. The first was Symfony.

A bit of history

Symfony is one of the most popular web development frameworks in the world.
')
It has come a long way from a fully integrated full-stack framework with back office in Symfony 1.x to a framework that has become a development of the Java community, and contains components inspired by JEE in the Symfony2 version.

Initially, Symfony2 required PHP 5.2.7, but PHP 5.3, which was only released at that time, had a new object-oriented model, so SensioLabs immediately made this version mandatory. Already after Symfony used Composer, completed the documentation and completely translated it into English.

Almost immediately, the migration of large open-source projects to Symfony began: OroCRM, EzPublish, Drupal8, PHPBB, PrestaShop, Piwik and many others - some of them completely switched to this framework, and some used only individual software components. Of particular note is Drupal8 - perhaps it was not the very first project, but certainly one of the largest CMS on the market.

The ability to use only individual Symfony software components allowed us to enrich the ecosystem with specialized software solutions. This displaced the Standard Edition framework (the so-called “full edition” or “meta-package”), which could no longer be the answer to pressing business questions. Therefore, in 2017, the creator of Symfony announced that version 3.4 for it will be the last.



A partial list of the most famous projects using symfony:


New Breath - Symfony Flex

The Flex plugin for Composer is a future replacement for the Standard Edition. It will make the development of symfony applications much easier.

The developer will be able to select and add the dependencies he needs using the YAML format files. They will explain to Flex what to do: add a dependency, configure and register a bundle, or, for example, create a folder.

You can find “recipes” for Flex in the officially approved SensioLabs catalog. Besides it, there is also a public source, where everyone can add their own recipe and make it accessible to everyone.

To release the RESTful API in 2017 using Flex, you need to refer to the Platform API. It is available through Flex, so in order to get a fully working application, just one command is enough.

Many people believe that the main focus of the Symfony project is not on the framework itself, but on maintaining high-quality software systems and their detailed documentation, and I cannot disagree with them. I think this conclusion was influenced by the relative success of Symfony 3 and the popularity of software solutions like Akeneo. In my opinion, the symfony team is moving in the right direction :)

The Composer plugin is compatible with symfony 3.3 and does not depend at all on the release of symfony 4, so you can now start trying and experimenting.

Symfony in 2017

If you want to quickly understand the API Platform, Akeneo, Marello, Sylius, Drupal8, Laravel or the Symfony Standard Edition framework, then learning about the Symfony ecosystem can help you a lot. It is worth paying attention to the following points:


Symfony components

Symfony components are well documented, supported by a huge community and are constantly evolving - for which we love them very much.

The use of specific components and their study certainly depends on the project. But these libraries, in my opinion, are the most useful:


All these components are used in the largest PHP projects and can work "autonomously".

Here is a brief overview, which, in general, makes you look in this direction, as the first special course for a separate course.

THE END

As always, your opinions are interesting either in the comments or on our Open House Day .

Source: https://habr.com/ru/post/344726/


All Articles