PHPMemo

Post for: #PHP (9 Posts)

Building a Minimal Single Sign-On (SSO) System from Scratch

May 14, 2025 Enxas
Auth PHP

Imagine you own a successful e-commerce website that sells audio equipment, serving millions of users. One day, your business analyst suggests that music streaming is…

Read more →

Using PHP as a (Terrible) Video Player

March 22, 2025 Enxas
PHP

While browsing a forum, I noticed an ASCII art image, which made me wonder how such images are created. It turns out that the process…

Read more →

Building My Own Async PHP

March 7, 2025 Enxas
PHP

A lot of what I do involves data processing. I retrieve resources like database records or files, then iterate through each one to process it.

Read more →

Demystifying Laravel's Higher Order Messaging

February 2, 2025 Enxas
Design Patterns Laravel PHP

I was browsing some Laravel project codebases when I came across code that looked like this: $participants = collect([...]); $team2Participants = $participants->filter->belongsToTeam(2); $totalScore = $team2Participants->sum->score;…

Read more →

How to Insert 1 Million Records Lightning-Fast

December 12, 2024 Enxas
Laravel MySQL PHP

When working with large datasets, inserting a massive number of records into a database can become painfully slow. Fortunately, MySQL provides an optimized solution: the…

Read more →

Identifying and Logging Duplicate Queries in Laravel Requests

December 10, 2024 Enxas
Debug Laravel PHP

When developing your Laravel application, you want to avoid unnecessarily making duplicate requests for performance reasons. However, it can be challenging to identify how many…

Read more →
← Previous

© 2024 PHPMemo. Find me on GitHub.