Build a PHP Framework: The Base Controller

Publicado el: 28 octubre 2025
en el canal de: Dave Hollingworth
1,713
109

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


En esta página del sitio puede ver el video en línea Build a PHP Framework: The Base Controller de Duración hora minuto segunda en buena calidad , que subió el usuario Dave Hollingworth 28 octubre 2025, comparta el enlace con amigos y conocidos, en youtube este video ya ha sido visto 1,713 veces y le gustó 109 a los espectadores. Disfruta viendo!