Back to Browse

Build a PHP Framework: Controllers

2.3K views
Oct 4, 2025
7:42

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

Download

1 formats

Video Formats

360pmp49.8 MB

Right-click 'Download' and select 'Save Link As' if the file opens in a new tab.

Build a PHP Framework: Controllers | NatokHD