Skip to content

u/roxblnfk

In this archive from May 2020 to Dec 2026

4
posts
97
comments
4
media
448
score
8 saved before deletion

Top posts

Top comments

> 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?

16 points

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.

14 points
  1. 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.

  2. 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

10 points

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?

8 points

Subreddits

Keyboard shortcuts

Move and act

jork
Next / previous post or comment
Enteroro
Open the post
f
Open the media viewer
s
Save
h
Hide (the toast has Undo)
Tab
Right after an action: the toast's Undo
x
Collapse the comment
v
Next layout: cards, compact, grid

Go to

/
Search
gthenh
Home
gthena
All
gthens
Subreddits
gthenl
Library
?
This list
Esc
Close a menu or this list

In the viewer

←or→
Previous / next file
↑or↓
Previous / next post
korj
Previous / next post
Space
Play / pause
m
Mute
z
Zoom
s
Save
o
Open the post (on its own page: back to it)
Esc
Close

Keys do nothing while you type in a box.