Once you know the Hyvä basics – PHTML templates, Alpine.js x-data, Tailwind classes – the next step is advanced patterns that make complex features maintainable. Alpine.js Store for shared state, custom events for cross-component communication, lazy loading for heavy widgets, and reusable component patterns are what separate a well-architected Hyvä theme from a pile of inline scripts.
PHP 9.0 is a future major release that will remove all the deprecated features accumulated since PHP 8.0. The first RFCs are being discussed and voted on. Typed arrays are the most debated addition. I show what is confirmed for removal, what new features are in discussion, and a realistic timeline for when PHP 9.0 will matter for Magento projects.
Service Contracts were introduced in Magento 2.0 as the stable API layer between modules. Eight years later I can look at what worked, what became antipatterns, and what the platform itself got wrong. SearchCriteria without a limit, anemic repositories, and over-reliance on Service Contracts where Events would have been cleaner – I show the patterns and the fixes.
2026 opens with PHP 8.5 fresh in production and PHP 9.0 on the horizon. FrankenPHP is maturing towards Magento compatibility. AI tooling is changing the economics of code generation. OpenSearch vector search is arriving in e-commerce. I look at what is worth tracking in the first quarter and what is hype versus signal.
2025 was the year PHP and Magento development changed gear. PHP 8.5 shipped with the pipe operator, Hyvä became the undisputed default for new Magento projects, AI tools graduated from experimental to mandatory, and the blog reached 120 posts. A retrospective of what actually mattered this year.
Iterator and Generator are two related but distinct mechanisms in PHP. Iterator is a GoF pattern that gives sequential access to a collection without exposing its internal structure. Generator is a PHP language feature that creates an Iterator using yield – without storing all values in memory at once. I show both, benchmark the memory difference, and apply them to large-scale Magento product processing.
Extension Attributes are Magento 2’s mechanism for extending existing entities (Product, Order, Customer) without modifying core tables. They participate in the REST API automatically and can carry any data type. Most tutorials show a simple string attribute. I show a complete implementation with batch loading (fixing N+1), REST API exposure with serialisation, and unit tests.
PHP 8.5 RC1 is out and the pipe operator is in it. After weeks with real Magento 2 module code using the RC, I can report what the pipe operator is genuinely good for, where it creates surprises, and confirm that readonly property inheritance works exactly as the RFC described. This is practical experience, not theory.
DDEV out of the box is fast to set up but the defaults leave performance on the table. Mutagen file sync, custom services, project hooks, and shared team configuration in version control reduce friction for everyone on the project. I show the advanced DDEV setup I use on large Magento 2 projects with multiple developers.
Copying a production database to a development environment without a proper process is either a GDPR violation or a security incident waiting to happen. I show a complete pipeline: fast dump with mydumper, automatic anonymisation of personal data, and DDEV hooks that make the sanitised database available to the whole team with a single command.
