Category

Laravel

How to Use Cloudflare Browser Rendering to generate PDFs with Laravel at Scale

Generating PDFs on the fly is a common requirement for many web applications, especially those dealing with invoices, reports, or any document-heavy functionalities. However, scaling this process can be a real headache, especially when your VPS starts struggling with numerous Puppeteer instances. In this tutorial, we’ll dive into how you can use Cloudflare’s Browser Rendering to handle PDF generation easily with Laravel.

Parallel Processing with PHP: why, how, and when

When we think of PHP, we typically imagine synchronous, single-threaded code that handles one task at a time. But PHP is more versatile than it's often credited for. Thanks to the process control (pcntl) support, PHP can manage parallelism through proces

Mastering Laravel Collections

Laravel’s Collection class is one of the most powerful and expressive features of the framework. While it often flies under the radar for newcomers, mastering collections can significantly simplify your code, increase readability, and give you more contro