From Self-Replicating PHP to Laravel SPAs — This Week’s Top Dev Hacks
Explore PHP quines, batch cURL, advanced Eloquent, Symfony 7.3, and how NativePHP just went mobile.
PHP
📚 PHP Quines: Self-Replicating Code Explained
PHP offers several ways to create quines - programs that output their own source code. Here’s a technical dive into these self-replicating curiosities.
📚 Simple PHP OOP for IP Blocking and Whitelisting
In this article, we’ll explore how to implement IP blocking and whitelisting in your PHP applications using Object-Oriented Programming (OOP). This approach provides a clean, reusable, and easy-to-understand way to manage access control.
📚 Batch curl requests in PHP using multi handles
Recently I had a task at work, in which I had to send a decent amount of HTTP requests within a script. Naturally, one of the first ideas was to use a batching mechanism to send multiple requests in parallel.
📚 How to Fix “MySQL Unexpected Shutdown” in XAMPP (Easy Step-by-Step Guide)
If you’re using XAMPP for local development, chances are you’ve come across this frustrating message at least once.
📚 Understanding Composer Version Constraints: A Comprehensive Guide
When managing PHP dependencies with Composer, understanding version constraints is crucial for maintaining stable, secure, and compatible packages in your projects. This guide explores the different operators and patterns you can use to specify version requirements.
Now in its 22nd year, phpday has been held continuously since 2003. The 2025 edition will be hosted in Verona on May 15-16.
📚 PHP 8.5: Release Date and Features, April 2025
As of April 2025, PHP 8.5 is in active development, with its release scheduled for November 2025. This upcoming version introduces several enhancements aimed at improving developer experience and language capabilities.
📚 Doctrine + DDD: Injecting Business Services into Your Entities Without the Pain
In this article, we will explore how to inject business services into your DDD entities without overloading constructors, using Doctrine’s PostLoad event to do so cleanly and efficiently.
📚 Mastering Immutable Types in PHP
In PHP, an immutable type refers to an object whose internal state cannot be altered after it is instantiated.
Laravel
📚 Object Calisthenics in PHP with Laravel: Improve Your Object-Oriented Code
Have you ever written Laravel code that works… but feels messy, hard to test, or hard to maintain?
📚 Make a Laravel Blade App Feel Like a Single Page Application (SPA) — Without Vue or React!
In a recent project, I wanted to keep my Laravel Blade setup super lightweight — no Vue, no React, no heavy front-end frameworks. But I still wanted smooth page transitions like a real SPA, without full-page reloads every time users clicked a link.
📚 From Idea to 1,000+ Stars: How Laravel Workflow Took Off
I was working at a fintech company, wrestling with long-running processes that felt like a constant headache. We were using queued jobs that polled to check if an earlier step had completed, requeueing themselves if it hadn’t.
📚 Validating Requests in Laravel: Simple, fast, and safe
In Laravel, validating incoming data is very easy — and it makes a big difference in keeping your app secure and reliable!
📚 Creating Custom Classes in Laravel Without Custom Commands
In this post, I’ll share my experience with this issue and introduce a practical solution, the usmanzahid/laravel-custom-make package, that streamlines the process with minimal configuration.
📚 Sharding MySQL in Laravel: A Guide to Horizontal Scaling
In this blog post, we’ll explore how to shard MySQL in Laravel efficiently using a custom sharding logic that routes database queries to the correct server based on a user ID (or any other primary key).
📚 NativePHP for Mobile v1 — Launching May 2
What if you could build real iOS and Android apps using the Laravel skills you already have? No Swift. No Kotlin. No Flutter. No React Native. Just Laravel. That dream is about to become reality.
📚 Map Eloquent Attributes into an Object Using the Collection Cast in Laravel 12.10
The Laravel team released v12.10.0, which includes mapping Eloquent attributes using the collection cast into a specific object, checking nested relationships with relationLoaded(), Arr::dot() performance improvements, and more.
📚 Mastering Laravel’s Advanced Eloquent: Best Practices for Complex Queries
In this article, we’ll explore best practices for mastering advanced Eloquent features, helping you craft optimized, clean, and maintainable queries.
📚 Mastering assertOnlyJsonValidationErrors in Laravel: Simplify Your API Validation Testing
When building APIs with Laravel, validating user input is essential. Equally important is testing that validation properly triggers when bad data is sent.
📚 DTO vs Resource in Laravel: What’s the Difference and When to Use Each
In this article, we’ll take a deep dive into the differences between DTOs and Resources, their purposes, and when to use each.
📚 I supercharged Laravel’s aging Seeder
I’m not going to lie, but one of the things that even I don’t put too much attention when developing an application are Seeders, those classes that help you populate a database with fake-but-correct records.
Symfony
📚 How to Avoid Image Copyright Lawsuits in Wordpress
Have you ever written an article? Or maybe multiple articles? If so, you’ve probably put some cool images in them. But have you ever thought about who their authors are and what licenses they use?
📚 How to Confidently Update Legacy Code in Symfony
Updating a PHP project often feels like a high-risk operation, especially on big or sensitive codebases. We’ve all been there: something breaks, hotfixes are flying, and everyone’s hoping for the best.
This week, we kicked off the New in Symfony 7.3 blog series, highlighting all the exciting new features coming in this release. We also unveiled more details about some of the SymfonyOnline June 2025 conference talks and published the full replay of all the talks from the recent SymfonyLive Berlin 2025 event.
📚 New in Symfony 7.3 - Slug and Twig Constraints
The Validator component provides dozens of constraints ready to use in your applications. In Symfony 7.3, we’ve added two new constraints to the list.
📚 Symfony 7: Keeping Up with PHP 8.4 and New Opportunities for Modern Development
With the release of Symfony 7 and the recent release of PHP 8.4, the framework once again proves its readiness for future challenges. The improvements in Symfony 7, combined with the innovations of PHP 8.4, open up new horizons for developers, providing tools for even more productive and faster development.

