Join Drew Falkman for an in-depth discussion in this video Intro to Symfony 3, part of MVC Frameworks for Building PHP Web Applications.
- [Instructor] The Symfony has long been one of the more popular PSP frameworks out there and for good reason. They have a solid code base community and docks. The framework itself has a lot to offer. It's flexible. It uses a decent and modular architecture. It has a really deep toolbox and some nice, rapid, application development features. Another nice thing about Symfony is it's not too overwhelming to get started and dive right into. So, kind of like Zend, Symfony is also backed by a company. This is a French company call SensioLabs.
They provide training and support. It has the MIT license. It's currently on version three point two. So previous versions of Symfony were mostly full-stack. However, with version two they opened things up a bit and for the most part, changes to three and beyond have been refinements, updates, implementing PSR support and they haven't really changed it a whole lot. So, it's very modular and the framework itself is pretty easy to get started in.
So, the framework itself is really a couple of things. One is a set of decoupled components that you can use in any PHP application. And the other is, the full-stack framework. So it's kind of a two part deal. So, the components themselves, you'll see are reused in a lot of different places. Drupal uses some of their components. PHPBB which is a bulletin board system does. And Laravel which is another framework we're going to look at later in this course, also uses a number of these different elements.
So, Symfony embraced a lot of different patterns from Java. It's older framework. The code base is well tested which is why other frameworks can rely on the classes from within it. It's easy to integrate with other PHP code. It also has a lot of different elements inside the environment. Right? So we have CMF which is a content management framework. So that's a skeleton that uses Symfony that you can use to install a whole content management app like a blog, or an online paper, or whatever you want to do.
In addition, there's Twig. So Twig is another element within this ecosystem. It's a template parser. So Symfony has its own templates using Twig. There's a swift mailer program, again reused in a lot of different places that just helps. It sort of builds on to PHP's email system. So there's also Silex and then there are a number of different bundles that out there that anyone can use. So overall, Symfony has consistently been in the list of popular PHP frameworks.
It excels because its components are super portable and the full stack provides a lot of power, as well as flexibility. So next, let's take a look at some of the concepts in Symfony 3 and see how specifically it works.
- Why use a framework?
- MVC-framework concepts
- Framework components
- Setting up the software
- Sample apps built in each framework
- Comparing frameworks