How to Check if user is Online or Offline using Offline.js

Offline.js is a JavaScript library to detect if a user is connected to the internet or not. It displays an alert message when the internet connection is lost similar to Facebook and Gmail.

It has different types of themes like – Default, Chrome, Dark, Hubspot, and Side to display alert message.

By default, it uses favicon.ico to check the internet connection but you can change it.

In this tutorial, I show how you can check if user is online or offline using the Offline.js library.

How to Check if user is online or offline using Offline.js

Read more

How to install CakePHP 4 Framework

CakePHP is a widely used PHP framework for small and large-scale projects. It is based on the MVC (Model View Controller) architecture which makes the development process easier if you are familiar with it.

It requires composer for installation.

In this tutorial, I show how you can install CakePHP 4 in your system.

I am assuming you have already installed composer. If not then you can follow this link.

How to install CakePHP 4 framework

Read more