Using PHPStan in a Standalone PHP MVC
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…
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.
Normally, JavaScript runs inside a browser to make websites interactive. But with Node.js, we can also run JavaScript on the server, directly from the terminal.
When working with JavaScript, you’ll often need to respond to user actions like clicks, keyboard input, and more. There are a few common ways to handle events in JavaScript, but…
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.
Simplified Explanation of Dependency Injection (DI) Process