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 7–12 of 87 posts · Page 2 of 15

CodeIgniter 4 Email System: Send Emails with SMTP, Templates & Queue using Gmail and Mailtrap

Sending emails is a core feature of almost every web application — from user registration confirmations to password resets and marketing newsletters. Most tutorials only cover the basics, but a real-world email system needs much more. In this comprehensive tutorial, you will build a complete email system in CodeIgniter 4 with SMTP integration for Gmail and Mailtrap, reusable HTML templates with dynamic placeholders, an email queue with cron-based processing, retry mechanism for failed deliveries, and a full dashboard for monitoring and logs.

By Revathi M · Read

PHP File Upload with Validation: Secure Image & Document Upload Tutorial

File uploads are one of the most common — and most vulnerable — features in web applications. From profile pictures to document submissions, handling file uploads securely is a critical skill for every PHP developer. In this comprehensive tutorial, you will learn how to build a complete file upload system in PHP with proper validation, security measures, and error handling. We cover single and multiple file uploads, MIME type checking, file size limits, secure file naming, and image-specific validation.

By Revathi M · Read

How to Build a REST API with PHP and MySQL: Complete CRUD Tutorial

REST APIs are the backbone of modern web and mobile applications. Whether you are building a React or Vue frontend, a mobile app, or integrating with third-party services — a well-structured REST API is essential. In this tutorial, you will learn how to build a complete RESTful API from scratch using plain PHP and MySQL. No frameworks required — just clean, structured, and production-ready code with proper HTTP methods, status codes, input validation, and error handling.

By Revathi M · Read

Implement JWT Authentication in PHP: Step-by-Step Guide

JSON Web Tokens (JWT) have become the standard for stateless API authentication. Unlike traditional session-based auth, JWT allows you to authenticate users without storing session data on the server — making it ideal for RESTful APIs, single-page applications, and microservices. In this comprehensive guide, you will learn how to implement JWT authentication in plain PHP from scratch — covering token generation, validation, middleware protection, and security best practices.

By Revathi M · Read

Stripe Payment Gateway Integration in PHP: Complete Step-by-Step Guide

Integrating a secure and reliable payment gateway is essential for any e-commerce or SaaS application. Stripe is one of the most popular payment processors worldwide, offering a developer-friendly API, robust security with PCI compliance, and support for cards, wallets, and subscriptions. In this comprehensive tutorial, you will learn how to integrate Stripe Payment Gateway into a plain PHP application from scratch — including creating a checkout form, processing payments securely using Stripe PHP SDK, handling errors, and verifying payments. No framework required.

By Revathi M · Read

Laravel 12 Queue and Jobs Tutorial: Background Processing Made Easy

In modern web applications, performance is everything. When users upload files, register accounts, or trigger heavy operations like sending emails or resizing images, you don't want your page to hang for seconds — or worse, timeout. This is where Laravel queues and jobs come to the rescue. In this hands-on guide, we'll walk through setting up queues in Laravel 12, creating jobs, dispatching them, handling failures, and running workers in both development and production.

By Revathi M · Read