Learning Symfony 4
1h 18mBeginner2019-09-18
Authors

Mike Oram
Academy Lead at Mayden Academy
Course details
Build PHP applications the modern way with Symfony 4, a popular PHP model-view-controller (MVC) framework. In this course, Mike Oram steps through how to build a PHP-based web app in Symfony. He explains how to install and configure Symfony and start saving time with typical development tasks, such as rendering content with templates. Mike also goes over how to create services with the service container, work with data using the Doctrine object-relational mapper, and implement middleware. After wrapping up this course, you'll have the tools you need to leverage Symfony to get a head start on your PHP projects.
Learning objectives
Installing Symfony
Exploring the Symfony file structure
Creating routes
Creating services with the service container
Working with data using Doctrine
Creating templates with Twig
Authentication with middleware
Learning objectives
Installing Symfony
Exploring the Symfony file structure
Creating routes
Creating services with the service container
Working with data using Doctrine
Creating templates with Twig
Authentication with middleware
Skills covered
SymfonySensioLabsPHPBack-End Web DevelopmentFront-End Web DevelopmentLearningWeb DevelopmentOpen Source
Concepts
0. Introduction
- 01 - Build web apps with Symfony
- 02 - What you need to know
- 03 - Installing Symfony
- 04 - Running Symfony locally
- 05 - Understanding MVC frameworks
- 06 - File structure
1. Build Pages Using Templates
- 07 - Create your first controller
- 08 - Routing with YAML
- 09 - Routing with annotations
- 10 - Creating a Twig template
- 11 - Rendering your template
- 12 - Challenge - Pass data to your template
- 13 - Solution - Pass data to your template
2. Create Services with Service Container
- 14 - Understanding the service container
- 15 - Using built-in services
- 16 - Creating your first service
- 17 - Services with params
- 18 - Using a service from your controller
- 19 - Challenge - Create a date service
- 20 - Solution - Create a date service
3. Work with Data Using Doctrine
- 21 - Introduction to Doctrine
- 22 - Set up and config Doctrine ORM
- 23 - Create your first entity
- 24 - Creating your DB structure
- 25 - Implementing into your controller
- 26 - Doctrine QueryBuilder
- 27 - Using SQL with Doctrine
4. Authentication with Middleware
- 28 - Intro to Symfony middleware
- 29 - Creating a subscriber
- 30 - Implementing a subscriber
- 31 - Handle subscriber exceptions
- 32 - Challenge - Implement token auth
- 33 - Solution - Implement token auth
Conclusion
- 34 - Next steps