As already discussed, learning Symfony is to learn installing and using powerful tools. I have introduced you to one of such tools, called Twig. In this article, I will cover more about twig and benefits of using such template engine. Unless you are building an API, twig will help you to deal with templates a lot easier.
Twig is a modern template engine for PHP
To create your first page with Symfony, you first need to understand what Route and a Controller is.
Symfony embraces the HTTP Request-Response lifecycle.
The Route is basically a map from a URL path to a controller and it can be configured in 4 different ways: using annotations or configuring route inside YAML , XML and PHP file.
Every framework has its own directory structure. Some of them may be similar to other ones. For example, Laravel looks similar to Symfony, since it’s based on Symfony framework, but on the other hand, CodeIgniter does not look similar to any of the two I mention above.
Frameworks are a powerful tool for quickly building web applications. Learning how to use frameworks will help you to build your projects better and faster. One of the most popular PHP frameworks is called Symfony, which is known to be the hardest to learn from all others PHP frameworks.