Quick revision before starting a professional php MVC like LeafPHP
This blog post is a personal recap of everything I learned while building a custom PHP MVC framework using Composer packages.
This blog post is a personal recap of everything I learned while building a custom PHP MVC framework using Composer packages.
If you’re building a standalone PHP MVC framework (not Laravel), one of the easiest ways to improve code quality is adding PHPStan. It helps you catch bugs before they show up in the browser or…
Here is the overall idea how we work with illuminate packages to create custom MVC.
When building a custom PHP MVC (Model-View-Controller) framework, there are several important aspects you need to consider: routing, templating, dependency management, database interaction, input validation, and more.
When using Composer’s PSR-4 autoloading, it’s common to place multiple classes inside the same src/ directory under a single namespace.
When you use composer packages (like a framework or a router library), they typically handle the underlying logic for routing, dependency injection (DI), middleware, and other essential features for you.…
In web development, middleware is a powerful concept used to handle HTTP requests and responses. Instead of calling each middleware one by one directly, the middlewares are nested inside each…
When building PHP applications, understanding coupling is crucial for maintainable and flexible code. Let’s break it down.
The Dependency Injection Container is the tool that makes objects ready to pass by automatically creating them and their required dependencies.
Here’s a step-by-step breakdown of the flow you described, represented as a diagrammatic explanation: