Web Vitals Metrics – What you should know

What are Web Vitals? Web Vitals is an initiative by Google to provide unified guidance for quality signals that are essential to delivering a great user experience on the web. These consists of some Core Web Vitals (LCP, FID and CLS) and a few others (TTFB and FCP). What are Core Web Vitals? For the …

Web Vitals Metrics – What you should know Read More »

Tracking Web Vitals in Google Analytics

There are a few different ways to track Web Vitals, however the easiest way is using the web-vitals JavaScript library. In this post we will load the web-vitals directly from CDN and use that to track the Core Web Vitals (LCP, FID, CLS) and other Web Vitals (FCP, TTFB) metrics.   Track Web Vitals in …

Tracking Web Vitals in Google Analytics Read More »

How to Check Laravel Version through CLI / command prompt and file

There are 2 easy ways to find out what version of laravel you are using. They are by running php artisian commands on CLI or checking the files. Method 1: Check Laravel Version using CLI / Command Prompt The tells us that the Laravel Framework version we are currently using is 7.11.0 Alternative to the …

How to Check Laravel Version through CLI / command prompt and file Read More »

PHP 7.4 – Null Coalesce Assignment Operator

The Null Coalesce Assignment Operator (??=) assigns the value of the right-hand parameter if the left-hand parameter is null. It is also called as Null Coalesce Equal Operator.

Generating bcrypt .htpasswd passwords using PHP

In my previous post we saw how to generate .htpasswd file using crypt and apr1-md5 algorithm in PHP. However, now there is a more secure BCRYPT algorithm that can be used since apache 2.4 for passwords in .htpasswd. In this post we will generate .htpasswd file using the BCRYPT algorithm in PHP.