How to add Google reCAPTCHA v3 in CodeIgniter 4

Google reCAPTCHA v3 is an invisible type of captcha where the user doesn’t have to interact. It tracks the user behavior on the site and returns a score between 0 to 1 with the response.

This score is use for validation on the server side.

In this tutorial, I show how you can add Google reCAPTCHA v3 to your form in CodeIgniter 4.

How to add Google reCAPTCHA v3 in CodeIgniter 4

Read more

Add Custom filter in DataTables AJAX pagination in CodeIgniter 4

DataTables already comes with a single search box for searching globally on the records.

Sometimes requires to filter records on the basis of available data in the element. For example, filter records according to the city selection from the dropdown or date range selection, etc.

You can create your own custom filters and use them with DataTable.

In this tutorial, I show how you can add custom filter in DataTables AJAX pagination in CodeIgniter 4.

Read more

How to Create Custom Validation Rule in CodeIgniter 4

Validation rules help to validate the form. You don’t need to write long if statement conditions for every <form > element.

While validating your form elements if your requirement is not fulfilled with the inbuilt validation rules provided then you can create your own validation rules.

In this tutorial, I show how you can create a custom validation rule and use it in the controller in the CodeIgniter 4 project.

How to create custom validation Rule in CodeIgniter 4

Read more