Learn how frameworks such as Laravel and Symfony organise the code that handles routes into controllers.
This is the fifth in a series of videos that will teach you how frameworks work in PHP by building one step by step. In this project-based tutorial, I'll be doing this using modern standards, best practices and third party packages where necessary.
In order to follow along you need to already be familiar with basic PHP.
https://www.youtube.com/playlist?list=PLFbnPuoQkKseimWeA4UFo1BPFTeXnv_1S
☕ Support me: https://ko-fi.com/davehollingworth
🌐 Recommended host: https://davehollingworth.com/hosting
💻 Source code: https://github.com/daveh/php-framework/releases/tag/v5.0.0
Transparent Arrow Stock Videos by Vecteezy
🌐 https://www.vecteezy.com/free-videos/transparent-arrow
Php icons created by edt.im - Flaticon
🌐 https://www.flaticon.com/free-icons/php
00:00 Introduction
00:12 Route handlers
00:53 Controllers
02:27 Using a controller directly
03:01 Autoloading
03:56 Routes with controller handlers
07:17 Conclusion
#PHP #framework #laravel #symfony