Over the time, PHP and its various tools have become more advanced and easier to use. As a result, you can create your own framework even using core PHP. Although there are many reputable, well-known, secure, updated and well-documented open source PHP frameworks that can be easily installed and used with Git or Composer commands. But as a PHP learner, if you want to understand how things like function classes, namespace objects, and so on work together within a framework, there is no substitute for hands-on learning.
So let's start by building a simple framework from scratch.
Please keep in mind that we are not inventing anything new. We will just use various functions and features of PHP.
Disclaimer:
- This framework is for learning purposes only. It is not intended for professional use or use on production server.
- This tutorial is not for novice in PHP. You should have at least an understanding of object-oriented programming concepts. It is also recommended to have a grasp of MVC and Solid Design Patterns.
- Highly recommend to get clear knowledge about git and composer.
Top comments (2)
building a small framework from scratch is a great way to understand what frameworks are actually doing behind the scenes. you learn much more when you have to connect the pieces yourself instead of just installing a package.
i also like the clear disclaimer about keeping it educational rather than production ready. nice tutorial.
@kanunilabs
Thank you,
It’s going to be a 22-part series, so stay connected and don’t miss the complete series!