PHP / Magento Dev Blog

  • Home

PHP Fibers deep dive – own scheduler, cooperative multitasking, parallel HTTP requests

  • 0
Henryk Tews
Tuesday, 15 July 2025 / Published in PHP

PHP 8.1 introduced Fibers as a foundation for cooperative multitasking. Most developers use them only indirectly through ReactPHP or Amp. But understanding Fibers at the mechanism level unlocks the ability to build your own concurrency primitives. I show how Fibers work, implement a minimal cooperative scheduler, and use it to run parallel HTTP requests without a framework dependency.

(more…)

GraphQL batch loading – BatchServiceContractResolverInterface, cache tags, N+1 fix

  • 0
Henryk Tews
Tuesday, 01 July 2025 / Published in Magento / Adobe Commerce

The N+1 problem is especially acute in GraphQL because resolvers compose independently without awareness of each other. A query for 20 products that each have categories will trigger 20 separate category queries without batching. Magento 2’s BatchServiceContractResolverInterface and the DataLoader pattern solve this. I show both approaches with cache tag integration.

(more…)

PHP 8.5 RFC confirmed – pipe operator, readonly inheritance, array_first/last

  • 0
Henryk Tews
Tuesday, 15 April 2025 / Published in PHP

The PHP 8.5 RFC vote on the pipe operator passed. After years of debate it is officially coming in November 2025. Readonly property inheritance also passed – child classes can now override parent readonly properties in specific cases. array_first() and array_last() join the array function family. I show what the final syntax looks like and how it changes real code.

(more…)

Hyvä vs Luma benchmark – real numbers, LCP 3.5x faster, k6 load test, conversion

  • 0
Henryk Tews
Tuesday, 01 April 2025 / Published in Magento / Adobe Commerce

Hyvä is faster than Luma – everyone says so. But by how much, on what metrics, and does it translate to business results? I ran controlled benchmarks on identical hardware with the same Magento 2.4.8 installation and both themes, measuring LCP, TTFB, Lighthouse scores, and load test results with k6. The numbers are concrete.

(more…)

Kubernetes for the PHP developer – kubectl debugging, Deployment YAML, HPA, troubleshooting

  • 0
Henryk Tews
Friday, 21 March 2025 / Published in Środowiska

Most PHP applications eventually run on Kubernetes – but developers rarely touch it until something breaks in production. Understanding the basics of Deployments, Services, ConfigMaps, and HPA makes debugging much faster. I show the minimum Kubernetes knowledge a PHP/Magento developer needs: reading logs, exec into pods, understanding why a pod is crashing, and writing a sensible Deployment YAML.

(more…)

Specification pattern – encapsulating business rules, AND/OR/NOT composition, testing

  • 0
Henryk Tews
Tuesday, 04 March 2025 / Published in Wzorce projektowe

Specification is a pattern that encapsulates a business rule as a composable object. Instead of scattering if-else checks throughout the codebase, you name the rule, make it testable, and combine it with AND, OR, NOT. I show a PHP implementation with composition operators and apply it to product eligibility rules in Magento 2.

(more…)

100th post – retrospective: 6.5 years, PHP 7.2 to 8.4, Magento 2.2 to 2.4.8

  • 0
Henryk Tews
Tuesday, 18 February 2025 / Published in Magento / Adobe Commerce, PHP

This is the 100th post on this blog. I started writing in July 2018, documenting what I was learning and building. 6.5 years, PHP 7.2 through 8.4, Magento 2.2 through 2.4.8, 100 posts. A retrospective – what changed, what stayed the same, and what I would tell myself in 2018 if I could.

(more…)

PHP 8.5 RFCs – pipe operator, readonly inheritance, why generics are not coming yet

  • 0
Henryk Tews
Tuesday, 04 February 2025 / Published in PHP

PHP 8.5 RFCs are actively being discussed on the php.net internals list. The pipe operator proposal has been debated for years and may finally ship. Readonly property inheritance fixes an inconsistency. Generics are discussed but will not come in 8.5. I look at the most impactful proposals, show what the code would look like, and explain why generics remain out of reach in the short term.

(more…)

Custom indexer – mview.xml, flat table, full and partial reindex, cron-triggered

  • 0
Henryk Tews
Tuesday, 21 January 2025 / Published in Magento / Adobe Commerce

Magento 2 indexers maintain denormalised data structures – flat tables, price indexes, category-product mappings – that make frontend queries fast. The built-in indexers cover most needs, but complex custom features sometimes need their own. I show how to build a custom indexer from scratch: mview.xml for change tracking, the indexer class with full and partial reindex, and triggering via cron.

(more…)

PHP / Magento trends 2025 – FrankenPHP, AI tooling update, OpenSearch, Hyvä consolidation

  • 0
Henryk Tews
Tuesday, 07 January 2025 / Published in PHP

2025 is shaping up as a year of consolidation in the PHP ecosystem. FrankenPHP changes how PHP applications are deployed. AI tooling has matured from “experimental toy” to “daily assistant”. OpenSearch has fully replaced Elasticsearch in the Magento ecosystem. Hyvä has become the default frontend choice. I review where things stand and what is worth learning in the next twelve months.

(more…)

  • 8
  • 9
  • 10
  • 11
  • 12

© 2026 Created by

TOP
Zarządzaj zgodą
Aby zapewnić jak najlepsze wrażenia, korzystamy z technologii, takich jak pliki cookie, do przechowywania i/lub uzyskiwania dostępu do informacji o urządzeniu. Zgoda na te technologie pozwoli nam przetwarzać dane, takie jak zachowanie podczas przeglądania lub unikalne identyfikatory na tej stronie. Brak wyrażenia zgody lub wycofanie zgody może niekorzystnie wpłynąć na niektóre cechy i funkcje.
Funkcjonalne Always active
Przechowywanie lub dostęp do danych technicznych jest ściśle konieczny do uzasadnionego celu umożliwienia korzystania z konkretnej usługi wyraźnie żądanej przez subskrybenta lub użytkownika, lub wyłącznie w celu przeprowadzenia transmisji komunikatu przez sieć łączności elektronicznej.
Preferencje
Przechowywanie lub dostęp techniczny jest niezbędny do uzasadnionego celu przechowywania preferencji, o które nie prosi subskrybent lub użytkownik.
Statystyka
Przechowywanie techniczne lub dostęp, który jest używany wyłącznie do celów statystycznych. Przechowywanie techniczne lub dostęp, który jest używany wyłącznie do anonimowych celów statystycznych. Bez wezwania do sądu, dobrowolnego podporządkowania się dostawcy usług internetowych lub dodatkowych zapisów od strony trzeciej, informacje przechowywane lub pobierane wyłącznie w tym celu zwykle nie mogą być wykorzystywane do identyfikacji użytkownika.
Marketing
Przechowywanie lub dostęp techniczny jest wymagany do tworzenia profili użytkowników w celu wysyłania reklam lub śledzenia użytkownika na stronie internetowej lub na kilku stronach internetowych w podobnych celach marketingowych.
  • Manage options
  • Manage services
  • Manage {vendor_count} vendors
  • Read more about these purposes
Zobacz preferencje
  • {title}
  • {title}
  • {title}