In this video you'll learn why PHP frameworks like Laravel and Symfony provide a base controller class that contains methods that are shared across different controllers. This makes the code more secure and easier to maintain.
This is the tenth 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.
• Build a PHP Framework
☕ Support me: https://ko-fi.com/davehollingworth
🌐 Recommended host: https://davehollingworth.com/hosting
💻 Source code: https://github.com/daveh/php-framewor...
🌐 PHP-DI Controllers: https://php-di.org/doc/best-practices...
🌐 Symfony Base Controller: https://symfony.com/doc/current/contr...
00:00 Introduction
00:51 Remove repetition
03:51 First problem
05:56 Second problem
08:34 Property Injection
11:34 Conclusion
#PHP #framework #laravel #symfony
On this page of the site you can watch the video online Build a PHP Framework: The Base Controller with a duration of hours minute second in good quality, which was uploaded by the user Dave Hollingworth 28 October 2025, share the link with friends and acquaintances, this video has already been watched 1,713 times on youtube and it was liked by 109 viewers. Enjoy your viewing!