Posts tagged "PHP"
Essays, field notes, and engineering write-ups by Al Amin Ahamed covering PHP — practical patterns, gotchas from production code, and lessons learned shipping real systems. Topics include architecture decisions, performance tuning, debugging stories, and integration notes you can apply directly to your own PHP work.
· 0 min read
MCP Servers for Laravel: A Production Pattern
How I built the MCP server that powers AI access to this portfolio — JSON-RPC over Streamable HTTP, Sanctum bearer auth, an ability-scoped tool registry, and the gotchas worth knowing before you ship.
· 10 min read
A Multi-Provider AI Driver Pattern for Laravel
A clean driver pattern for switching between Claude, OpenAI, Groq, and Ollama in a Laravel app — with failover, testing, and a single calling interface.
· 10 min read
Building Production Gutenberg Blocks in 2025
A practical guide to building Gutenberg blocks with the v3 API — block.json, dynamic blocks, deprecations, and the testing strategies that actually work.
· 11 min read
Building Custom Commission Logic in Dokan Multi-Vendor
How Dokan's commission system actually works, the filters you need, per-category and tiered commission patterns, and what to never do.
· 10 min read
WordPress Plugin Security: Lessons from Two Disclosures
The exact security checklist I run every plugin through before release — capability checks, escaping, nonces, and the disclosed bugs that taught me each lesson.
· 10 min read
Laravel Queues at Scale: Lessons from 10 Million Jobs
Patterns and pitfalls I've learned running Laravel queues in production — from connection pooling and job chunking to dead-letter handling and zero-downtime deployments.
· 7 min read
Adding PHPStan to a WordPress Plugin (Without Losing Your Mind)
A practical guide to getting PHPStan running on a production WordPress plugin, including the stubs you need and the rules you'll want to ignore.
· 12 min read
Building a WooCommerce Payment Gateway from Scratch
Everything you need to know to build a production-ready WooCommerce payment gateway integration — checkout flow, webhooks, refunds, and subscriptions.
· 6 min read
WP-CLI Tips That Actually Save Time
Practical WP-CLI commands and custom commands I use daily to speed up WordPress development, deployments, and debugging.
· 8 min read
Feature Testing Laravel Applications with Pest
A pragmatic guide to writing fast, readable feature tests in Laravel using Pest — from test structure to database setup and API testing.
· 10 min read
TypeScript for PHP Developers
A practical transition guide for PHP developers picking up TypeScript — mapping familiar PHP concepts to their TypeScript equivalents, from null safety to generics.