Skip to content

Blog

Writing

Engineering, AI experiments, and software craft.

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.

Filtered by PHP ✕ clear
MCP Servers for Laravel: A Production Pattern
May 12, 2026
· 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.

A Multi-Provider AI Driver Pattern for Laravel
Mar 10, 2026
· 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.

Building Production Gutenberg Blocks in 2025
Jan 22, 2026
· 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.

Building Custom Commission Logic in Dokan Multi-Vendor
Nov 18, 2025
· 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.

WordPress Plugin Security: Lessons from Two Disclosures
Sep 8, 2025
· 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.

Laravel Queues at Scale: Lessons from 10 Million Jobs
Mar 20, 2025
· 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.

Adding PHPStan to a WordPress Plugin (Without Losing Your Mind)
Feb 10, 2025
· 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.

Building a WooCommerce Payment Gateway from Scratch
Dec 5, 2024
· 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.

WP-CLI Tips That Actually Save Time
Aug 15, 2024
· 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.

Feature Testing Laravel Applications with Pest
Jun 10, 2024
· 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.

TypeScript for PHP Developers
Oct 5, 2023
· 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.