New features in PHP 8.1
PHP 8.1 is a major new version to PHP, which brings several new features, quality-of-life improvements, and attempts to prepare PHP to iron out...
Get file name from a path in PHP
Today, we will learn how to get the file name from a given path in PHP. There are various ways to achieve this, but...
How to Filter PHPUnit tests
We have started writing test in our application in the previous article. In you have noticed, when we run the vendor/bin/phpunit tests command, all...
Test Driven Development in PHP
Test Driven Development (TDD) is a software development approach where tests are written first and then code passing the test is written. In other...
Function Overriding and Overloading in PHP
Function overriding and overloading are forms of Polymorphism in Object Oriented Programming. Method overloading occurs when two or more methods with the same method...
Capture Webpage Screenshot using PageSpeed Insights API
In this article, we will capture a screenshot of the website using Google PageSpeed Insights API. This is a simple process that will be...
Integrate Google PageSpeed Insights API
Do you know, Google provides a free PageSpeed Insights API to analyze websites? It gives free access to performance monitoring of web pages and...
Configure XDebug, Xampp and VSCode in Windows
Xdebug is an extension for PHP to assist with debugging and development. Xdebug makes development easier by allowing the developer to debug his code...
Get only Categories that Contain Products on Sale
While I was working on a project, I came across a situation where I need to filter all the categories with products on sale....
Understanding Dependency Injection in Laravel
Dependency Injection is a design pattern that injects objects into the constructor or methods of other objects, so that one object depends on one...