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 25–30 of 46 posts · Page 5 of 8

Generate Professional PDF Invoices in Laravel 11 with Dompdf

             Need to create downloadable PDF invoices in your Laravel 11 application? In this step-by-step guide, you'll learn how to generate professional invoices from HTML/Blade templates using the reliable barryvdh/laravel-dompdf package. We'll cover installation, database setup for orders/items, controller logic, Blade styling (with header/footer), and triggering PDF downloads. This works great for e-commerce, billing systems, or admin panels.

By Revathi M · Read

Generate PDF from HTML in CodeIgniter 4 Using Dompdf

             In modern web applications built with CodeIgniter 4, generating PDFs for invoices, receipts, reports, or contracts is a common requirement. Dompdf is a popular, lightweight PHP library that converts HTML + CSS directly into PDF documents — no external dependencies needed beyond Composer. This step-by-step guide shows you how to integrate Dompdf in CodeIgniter 4 to create dynamic PDFs (using a real-world invoice example with order data from MySQL). By the end, you'll have a working PDF generator.

By Revathi M · Read

How to Generate vCard (.vcf) Files in Laravel 11 – Complete Tutorial

             In this comprehensive guide, you'll discover how to implement a powerful Laravel vCard generator to dynamically create and export professional vCard (.vcf) files from your Laravel 11 application. Whether you're building a CRM, employee directory, networking tool, or digital business card platform, generating vCards allows users to instantly share contact details with smartphones, email clients, and address books — no manual entry required. Follow our step-by-step tutorial to set up a complete contact management system with seamless vCard downloads using best-practice packages and clean, maintainable code. By the end, you'll have a fully functional feature ready to enhance user experience and streamline professional networking in 2025–2026.

By Revathi M · Read

How to Create Dynamic Charts with Filter Options in ApexCharts Using Laravel 11

             ApexCharts is a modern, free JavaScript charting library perfect for creating responsive, interactive visualizations (bar, line, area, pie, and more). In this Laravel 11 tutorial, you'll learn how to build dynamic charts with filter options — specifically, an AJAX-powered year selector that updates a monthly user registration bar chart without page reloads. Great for admin dashboards, analytics pages, or reports!

By Revathi M · Read

Generate PDF from HTML in Laravel 11 Using TCPDF – Complete Tutorial

Generating PDF files is essential for invoices, reports, receipts, and certificates in Laravel applications. While popular options like barryvdh/laravel-dompdf or spatie/laravel-pdf (using Chromium for modern CSS) dominate in 2025–2026, TCPDF remains a solid, pure-PHP choice with no external dependencies. It excels at precise control over layout and supports HTML + basic CSS. In this tutorial, we'll build a complete invoice PDF generator in Laravel 11 using the elibyy/tcpdf-laravel package. By the end, you'll generate downloadable PDFs from Blade views.

By Revathi M · Read