
Understand what you need at the start and what you receive at the end while bootstrapping a php mvc framework with controllers, models, views, and routing.
Build a PHP MVC framework from scratch by defining a clean folder structure, implementing a front controller in index.php, and configuring htaccess routing.
Learn how to bootstrap a PHP MVC project by configuring preparation steps, managing include files, setting up a core class, and establishing a database connection.
Explore the convention of applying mvc architecture in PHP, featuring a singleton base, set and get by key, and file naming rules that map class names to file names.
Define routing by mapping URL patterns to controller actions using a singleton-like router with static methods, and pass parameters to actions to render the appropriate view.
Learn to render a view and its layout in a PHP MVC framework by creating a view class, setting up default layouts, and binding data for output.
Learn to render data in your PHP MVC framework by wiring views with layouts and a render function, illustrating how views, extensions, and content flow cooperate.
Explore how a front controller routes requests, uses reflection to identify controller classes and actions, and dispatches with parameters to render the appropriate view.
Enable proper error reporting by toggling development and production modes, displaying or hiding errors, and using a global environment constant to control logs.
Learn how to implement file-based caching in a custom PHP MVC framework, including a cache class, setting data lifetime, creating cache files, and cache cleanup logic to avoid database hits.
Create an abstract base controller in php to establish a reusable mvc framework foundation, then extend it with a default controller that wires view and model components.
Learn the basic concepts of using a model-view-controller framework that will make your PHP projects faster, easier to write and maintain, and more secure.
Learn to PHP-MVC Creating your own framework.
Take your PHP Projects to the Next Level
Learning how to use an MVC framework puts a very powerful tool at your fingertips. Most commercial websites and web applications written in PHP use some sort of framework, and the MVC pattern is the most popular type of framework in use.
The gap between knowing PHP and using a framework can be huge. This course bridges that gap. By writing your own framework from scratch, you'll gain an understanding of just how each component works. Frameworks like Laravel, Symfony and CodeIgniter all use the MVC pattern, so understanding how an MVC framework is put together will give you a strong background to more easily learn frameworks such as these.
Content and Overview
I designed this course to be easily understood by programmers who know PHP but don't know how to use a framework. Are you putting database code and HTML in the same PHP script? Want to know why this is a bad idea? Want to know how to do it better?
Starting with the basic concepts of MVC frameworks, this course will take you through all the steps needed to build a complete MVC framework, a piece at a time.
Beginning with a single PHP script, each lecture explains what you're going to add to the code and why, building up the framework step by step. At the end of this course, you'll have built a complete MVC framework in PHP, ready to use in your own projects.
Complete with working source code at every stage, you'll be able to work alongside the instructor and will receive a verifiable certificate of completion upon finishing the course.
Who is the target audience?