From my perspective, the switch seems driven more by the fact that Yii2's approaches have become outdated and the technology needs to move forward. Yii Framework is still in the top 3 PHP frameworks by popularity. The new Yii 3 is on the horizon, and migrating to it would require less effort: much of the API is compatible with Yii2, high DX continuity, while code quality is orders of magnitude better.
But what are they doing? Switching to a framework that, while most popular, is already technologically outdated. It won't evolve further -- its technological runway is exhausted. Under the hood, there's no modern PHP, and in attempts to keep up with the times, various things are propped up with workarounds. PSR compliance is minimal.
Nowadays, frameworks of a different order are being written: capable of working in long-running mode without crutches, or even fully asynchronous.
So it turns out CraftCMS team is migrating to outdated technology again. This move will take another year, but they'll gain access to the largest community.
Whether that's good or not is a complex question.
Do people even choose a CMS based on its framework? That's unclear to me too.
If a CMS provides all the necessary plugins and business logic has to be isolated, why would I care what framework is under the hood?
We're not comparing Rust vs PHP as languages. Rust is obviously faster in isolation, no argument there. We're comparing a specific framework: Laravel for Rust vs its PHP counterparts on the same API. "Of course PHP is the bottleneck" is exactly the assumption we tested, and here it didn't hold.
array_reduce cannot replace a full middleware pipeline. It works like a pipe operator but with a chain of arbitrary length. In PSR-15 middleware, you can handle both request and response within a single middleware, which you can't do in a pipe.
Interceptors (a type of middleware) are widely used in enterprise applications, including those in Java. In PHP, you can see interceptors "out of the box" in tools that are first designed and then implemented:
Temporal PHP SDK: an enterprise-level tool. It allows intercepting not only requests but also calls to Workflow/Activity facades. There are many typed interceptors dictated by Temporal specifications.
Spiral: an enterprise-level framework, originally designed for RoadRunner long before Octane and Symfony-runtime. Interceptors are used everywhere: http, gRPC, tcp, console, etc. Package spiral/interceptors is universal and framework-agnostic.
Testo: a new testing framework that is close to release. Everything in it is built and extended via middleware.
PHP could outshine the likes of Java if it added core-level interceptors, allowing calls to any object's methods to be intercepted and pushed through a custom pipeline
also:
+ Important parts of the code appear AI-generated, affecting overall quality
+ Appears abandoned in favor of the official MCP implementation
In your repository I immediately see what I'd want in the official MCP: strict typing and clean, well-structured code. Good signs!
Do you plan to maintain this long-term?
Are you open to modern practices and community contributions?
Would you welcome discussions about architecture and improvements?
> Good for them on finally switching
Or maybe not. Hard to say.
From my perspective, the switch seems driven more by the fact that Yii2's approaches have become outdated and the technology needs to move forward. Yii Framework is still in the top 3 PHP frameworks by popularity. The new Yii 3 is on the horizon, and migrating to it would require less effort: much of the API is compatible with Yii2, high DX continuity, while code quality is orders of magnitude better.
But what are they doing? Switching to a framework that, while most popular, is already technologically outdated. It won't evolve further -- its technological runway is exhausted. Under the hood, there's no modern PHP, and in attempts to keep up with the times, various things are propped up with workarounds. PSR compliance is minimal.
Nowadays, frameworks of a different order are being written: capable of working in long-running mode without crutches, or even fully asynchronous.
So it turns out CraftCMS team is migrating to outdated technology again. This move will take another year, but they'll gain access to the largest community.
Whether that's good or not is a complex question.
Do people even choose a CMS based on its framework? That's unclear to me too.
If a CMS provides all the necessary plugins and business logic has to be isolated, why would I care what framework is under the hood?
We're not comparing Rust vs PHP as languages. Rust is obviously faster in isolation, no argument there. We're comparing a specific framework: Laravel for Rust vs its PHP counterparts on the same API. "Of course PHP is the bottleneck" is exactly the assumption we tested, and here it didn't hold.
array_reducecannot replace a full middleware pipeline. It works like a pipe operator but with a chain of arbitrary length. In PSR-15 middleware, you can handle both request and response within a single middleware, which you can't do in a pipe.Interceptors (a type of middleware) are widely used in enterprise applications, including those in Java. In PHP, you can see interceptors "out of the box" in tools that are first designed and then implemented:
spiral/interceptorsis universal and framework-agnostic.PHP could outshine the likes of Java if it added core-level interceptors, allowing calls to any object's methods to be intercepted and pushed through a custom pipeline
What issues did you encounter with existing libraries that made you create a new one?
https://packagist.org/?query=%2Ftoml
also:
+ Important parts of the code appear AI-generated, affecting overall quality
+ Appears abandoned in favor of the official MCP implementation
In your repository I immediately see what I'd want in the official MCP: strict typing and clean, well-structured code. Good signs!
Do you plan to maintain this long-term?
Are you open to modern practices and community contributions?
Would you welcome discussions about architecture and improvements?