All Laravel, PHP & CodeIgniter Tutorials

Browse all our Laravel 12, CodeIgniter 4, and PHP tutorials. Each guide includes working source code, best practices, and step-by-step instructions.

Showing 13–18 of 32 posts · Page 3 of 6

How to Implement MFA/2FA in CodeIgniter 4 with Google Authenticator

Security is no longer optional for modern web applications. Password-only authentication is vulnerable to phishing, credential stuffing, and brute-force attacks. This is why Multi-Factor Authentication (MFA)—also known as Two-Factor Authentication (2FA)—has become a standard security requirement. In this step-by-step tutorial, you will learn how to implement MFA/2FA in CodeIgniter 4 using Google Authenticator with complete working code examples.

By Revathi M · Read

CodeIgniter 4 Filters: A Complete Guide with Examples

Learn how to use filters in CodeIgniter 4 with this step-by-step guide. This tutorial covers before and after filters, authentication filter example, route-specific configuration, role-based access control, and best practices for building secure PHP applications using CI4 filters.

By Revathi M · Read

How to Dynamically Generate and Download vCard Files in CodeIgniter 4

             In this tutorial, you'll learn how to dynamically generate vCard (.vcf) files in CodeIgniter 4 and allow users to download contact information directly from your database. This is useful for contact management apps, directories, or CRM-like systems. We'll build a simple contact list with DataTables, add new contacts via popup, and provide a "Download vCard" button per record.

By Revathi M · Read

Create Dynamic Charts with Filter Options in ApexCharts using CodeIgniter 4

             ApexCharts is a powerful, open-source JavaScript library for creating responsive, interactive charts (bar, line, area, pie, and more). In this CodeIgniter 4 tutorial, you'll learn how to build a dynamic bar chart that displays monthly user registrations — with real-time filtering by year using AJAX. No page reloads needed. This guide covers project setup, database seeding, backend data processing, and frontend chart rendering/updates. Ideal for admin dashboards or analytics pages.

By Revathi M · Read

Integrate FullCalendar in CodeIgniter 4: Build an Events Calendar with CRUD, AJAX & MySQL

             FullCalendar is a powerful JavaScript calendar library for displaying and managing events. In this CodeIgniter 4 FullCalendar tutorial, you'll learn to build a complete events calendar with CRUD operations using AJAX, drag-and-drop, date selection, and MySQL storage. This is ideal for appointment booking, task scheduling, or event management systems.

By Revathi M · Read

Generate PDF in CodeIgniter 4 Using TCPDF – Complete Tutorial

             PDF generation is essential for invoices, receipts, reports, and printable documents in web apps. CodeIgniter 4 doesn't include a native PDF library, so TCPDF (a robust, open-source PHP class) is a popular choice. This tutorial shows you how to integrate TCPDF in CodeIgniter 4 to generate dynamic PDFs from database data. We'll build a simple invoice system.

By Revathi M · Read