Skip to content

Essays

Writing

Laravel and WordPress in production, LLM work that had to pay for itself, and what broke on the way.

2026

May 25
· 0 min read

Prompt Versioning in Production: Managing LLM Prompts Like Code

How EasyCommerce manages LLM prompts across Claude, OpenAI, and DeepSeek with a versioned registry, structured evals in CI, and a rollback path that does not require a deployment.

PHP WordPress AI / LLMs Architecture
May 25
· 0 min read

Building a Claude Code MCP Server in Python: Lessons from codebase-research-agent

How codebase-research-agent exposes a tool-using AI agent as a Claude Code MCP server — JSON-RPC over Streamable HTTP, tool registration, streaming SSE, and the four things that broke in production before it worked reliably.

AI / LLMs Architecture Anthropic
May 14
· 0 min read

Scaling a Laravel MCP Tool Registry to 46 Tools

The May 12 post covered the MCP server architecture. This one goes inside the tool registry: class-per-tool structure, Sanctum ability scoping, JSON Schema validation before dispatch, tag-based auto-discovery, and the three things that broke when the registry hit 46 tools.

Laravel PHP AI / LLMs Architecture
May 14
· 0 min read

A Claude Tool-Calling Loop in Laravel: From First Request to Final Answer

The exact pattern for registering tools, dispatching multi-turn Claude conversations, and processing tool results in a Laravel service — including the three production failure modes the happy path does not cover.

Laravel PHP AI / LLMs Architecture
May 14
· 0 min read

Embedding LLMs in a WordPress Plugin: EasyCommerce's Async Architecture

How EasyCommerce wires LLM calls — product description generation, fraud detection, and inventory forecasting — into a WordPress plugin using async dispatch and a provider abstraction that survives outages and scales across catalogues.

PHP WordPress AI / LLMs Performance
May 12
· 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.

Laravel PHP AI / LLMs Architecture
Mar 10
· 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.

Laravel PHP AI / LLMs Architecture

2025

Nov 18
· 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.

PHP WordPress WooCommerce Architecture
Aug 12
· 8 min read

Tailwind v4 Migration: From v3 Config to CSS-First Tokens

A practical guide to migrating a real Laravel app from Tailwind v3 to v4 — what breaks, the new @theme syntax, plugin migration, and the 5× build speedup.

Performance Tailwind CSS Architecture
Jul 28
· 9 min read

React 19 in Production: useTransition, useOptimistic, and the End of forwardRef

How I use the new React 19 hooks in this portfolio's admin — useTransition for non-blocking input, useOptimistic for instant UI, and refs as props.

TypeScript React Performance Architecture
Apr 8
· 9 min read

A Code Review Playbook That Catches Real Bugs

The three-pass review structure I've refined over a decade — when to push back, how to write comments, and what makes reviews valuable instead of performative.

Career Architecture

2023

Oct 5
· 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.

PHP TypeScript Architecture

About Architecture

Everything Al Amin Ahamed has written about Architecture — written after shipping rather than before, so what is in here is what the constraint turned out to be and what I got wrong first.