Build a Mini Library Management System in PHP (OOP + Composer Autoloading)
If you’re learning Object-Oriented PHP, a great way to practice is by building something small and meaningful.
If you’re learning Object-Oriented PHP, a great way to practice is by building something small and meaningful.
This guide will help you quickly revise PHP basics, OOP concepts, MVC, Composer, and modern best practices.
Group middleware is a way to bundle multiple middleware under one group name, so you don’t have to manually list every single middleware for every route.
Middlewares are filters for HTTP requests. It filters the request using it’s parameters and redirect to different routes. If all filters passes then call the final controller.
When you’re learning PHP, one confusing thing that often pops up is the term “Closure”. Any anonymous fn() is always an object of default php Closure class.
Creating your own MVC (Model-View-Controller) structure in plain PHP without any frameworks or Composer packages can be a great way to learn how things work behind the scenes. But it…
Bootstrap provides pre-designed components/classes while Tailwind CSS provides lots of low-level utility classes gives you more flexibility.
Many times we process the data and creates an array. That array later on will be processed further. In this scenario we need to create an array which occupy the…
We know the concept of OOPS but how come to know that these type of classes we need with these type of methods & attributes & What will be abstract…
The null safe operator (?->) in PHP is a feature introduced in PHP 8.0. It allows you to call methods or access properties on an object only if the object…