Customising the Magento 2 checkout is one of the most requested – and most feared – development tasks. The checkout is a JavaScript-heavy single-page application built on Knockout.js and RequireJS. Adding custom fields, new steps, or modifying the order of existing ones requires understanding the JS architecture alongside the PHP backend. I show a complete example: custom delivery note field from frontend to Order.
PHP 8.3 was officially released on 23 November 2023. After a few weeks of real use, the features that seemed minor on paper turn out to be genuinely useful in everyday code. Typed class constants stop silent type errors in constant definitions. json_validate() replaces decode-and-discard. The readonly amendment makes value object cloning finally ergonomic. I show all three in production scenarios.
WooCommerce and Magento 2 are both serious e-commerce platforms, but they target fundamentally different use cases and developer profiles. After years of working primarily in Magento 2 I have done several WooCommerce projects. The architecture differences are real and the choice matters. I compare both platforms where it counts for a developer making the decision.
GraphQL Federation allows splitting a monolithic GraphQL schema into separate subgraphs maintained by different teams or services. Each service owns its part of the schema; the gateway stitches them together transparently for the client. This architecture fits e-commerce well: products, inventory, pricing, and orders as independent services with a unified API layer.
Dijkstra’s algorithm finds the shortest path in a weighted graph – the generalisation of BFS for graphs where edges have costs. It is the foundation of GPS navigation, network routing, and in e-commerce it appears in warehouse routing, delivery zone assignment, and shipping cost calculations. I implement it in PHP with SplMinHeap and show practical applications.
PageBuilder is Magento 2’s drag-and-drop content editor that replaced the plain HTML textarea in admin. A custom content type lets merchants create complex layouts without HTML knowledge while giving developers full control over the output. I show the complete implementation: XML configuration, JavaScript preview in admin, and frontend rendering.
State is a behavioural pattern that allows an object to change its behaviour when its internal state changes. It looks like the object changed its class. The classic example is an order state machine – an order in “pending” status behaves differently from one in “processing”. I show an implementation in PHP and compare it with Strategy, which it superficially resembles.
PHP 8.3 is due in November 2023 and while it is a conservative release compared to 8.0-8.2, it adds several things worth knowing about before they arrive. Typed class constants close an inconsistency in the type system. json_validate() saves a decode-and-discard pattern. array_find() and array_find_key() replace clunky array_filter() idioms. The readonly amendment allows re-initialisation in cloning.
Drupal 10 is a significantly more modern platform than its reputation suggests. The rewrite to Symfony components, a proper DI container, and a composer-first approach happened years ago. Drupal 10 adds PHP 8.1+ requirements, drops old dependencies, and has CKEditor 5 and Olivero as defaults. I show Drupal 10 through the lens of a PHP developer familiar with Magento 2 and Symfony.
Laravel and Symfony are the two dominant PHP frameworks, and choosing between them is a real decision in every new project. They share a Symfony core (Laravel uses several Symfony components) but have fundamentally different philosophies: Symfony favours explicitness and flexibility, Laravel favours convention and developer ergonomics. I compare them where it matters most for a PHP developer making an architecture choice.
