Starting in Symfony2

Symfony is a PHP web application framework that leverages an MVC design approach. Learn how to develop a powerful, real-world application using Symfony. Ready to dive into services, containers, events, forms, Doctrine and more? Let's go!
Course info
Rating
(68)
Level
Beginner
Updated
May 29, 2015
Duration
4h 44m
Table of contents
Building Your First Symfony App
Security, Registration and Forms
Doctrine Relationships & the Dependency Injection Container
Advanced Form Rendering, Assetic and Deployment!
Description
Course info
Rating
(68)
Level
Beginner
Updated
May 29, 2015
Duration
4h 44m
Description

Symfony is a PHP web application framework that leverages an MVC design approach. Once you've mastered Symfony, you'll not only be able to build something amazing, you'll also be familiar with some of the most important programming concepts and web best practices of today. Join us as we start from the beginning: installing Symfony and starting to build our first pages. We'll then build a real events site complete with forms, security, complex database relationships and much more. Along the way, we'll learn about services - a hugely important concept to modern frameworks that will unleash you going forward.

About the author
About the author

Leanna is the creative force that makes KnpUniversity tutorials fun! You can also find her at PHP conferences, casually antagonizing the leaders of many open source projects with a smile.

About the author

Ryan is the documentation lead for the Symfony Framework, trainer and consultant at KnpLabs US, writer for KnpUniversity.com and an avid supporter of open source as a tool to solve serious business problems.

Section Introduction Transcripts
Section Introduction Transcripts

Security, Registration and Forms
Well hi again, and congrats on getting through everything in episode 1. Seriously, that was a lot of work. So find a stranger and give them a high five, but then come back and let's get to work. Over the next hour, we're going to take things to the next level, aiming at some of the most difficult areas of Symfony like security, forms, and some serious Doctrine topics. Some of the stuff will look pretty tough at first, but that's just because we're taking your Symfony foo up to the next level. When you finish, you'll be another huge step towards mastering Symfony. Okay, drink some coffee, stretch a little, and let's get to it.

Doctrine Relationships & the Dependency Injection Container
Well, hey friend. You've made it to part 3, so high five a stranger and then keep going. In this episode, I want us to really start to learn how Symfony works under the hood. We'll learn what a service is, find out more about the core Symfony services, and create a few of our own. In Doctrine, we'll create some ManyToOne and ManyToMany relationships. We'll also talk about lifecycle callbacks and event listeners. And there's a lot more that we're hiding in between all of these topics. And you've been coding with me, right? If you have, you should now feel comfortable creating new classes, routes, and templates. You're going to kill that first project. So when you see new concepts, stop the video, investigate, play with them, and then keep going. Ultimately, looking inside some of Symfony's own classes is a great way to get even more comfortable. Okay, let's roll.

Advanced Form Rendering, Assetic and Deployment!
Okay guys. Welcome to the last episode. We'll be working on the project from where we left off in episode 3. You can get that from the code download in this tutorial. I'm not going to bore you with a lot of introduction. I'd rather get to work, but I will say that you've come a long way through the first three episodes, and now you understand all the really important parts of Symfony like routes, controllers, and services. Here in episode 4, we're going to round things out by learning more about forms, handling assets, and how we can get our app up to production. And hey, don't get lazy on me now. Code along with the tutorial. It'll make a huge difference. Okay, I can't wait any longer. Let's go.