Blog
The Data Layer | Build Your Own PHP Framework
In this multi-post series we are creating our own framework. We have a working application complete with routing, controllers, and dependency injection. Let's implement the data layer. We will define the Model of our Model-View-Controller setup. We will start out with our custom comma-separated file storage for the data. When done, we will use the excellent [Doctrine](https://www.doctrine-project.org/) library to re-implement the same interface but this time using a solid, scalable database for storage. read more
Services and Dependency Injection | Build Your Own PHP Framework
In this multi-post series we are creating our own framework. We have previously created a front controller, added a router and created two controllers. Now it is time to introduce services to the controllers! read more
Build Your Own PHP Framework
In this post we will actually start implementing out own framework. I assume you have installed php locally. We will now create our front controller and add routing setup. read more
Creating your controllers | Build Your Own PHP Framework
Now that we have created a basic router, what should we route to? In the previous lesson we defined some basic functions to serve as placeholders. Now, lets create some controllers and modify the router to call these for us! In this episode we will create a `Dashboard` and `Comment` controller. Yes - we're building a comment system now. We will also use the relatively new [PHP Attributes](https://www.php.net/manual/en/language.attributes.overview.php) to define which url the controller will map to. read more
Don't explain your technical considerations to stakeholders
When working in a team, it is common that stakeholders want to understand the technical considerati...
read more