spatie/yii-ray
Yii2 integration for Spatie Ray desktop debugger. Send dumps, arrays, HTML, queries, and more from your Yii2 app to Ray for faster debugging. Includes performance tools and the same Ray API used across PHP frameworks.
Debugging & Developer Experience (DX):
var_dump() or log() files by providing a real-time, interactive debugging experience akin to browser dev tools.Roadmap & Technical Debt:
Use Cases:
yii\debug\Module).Adopt if:
Look elsewhere if:
yii\debug\Module) or Kint for simplicity."This package integrates Ray, a desktop debugging tool, into our Yii2 apps to give developers real-time, interactive debugging—like browser dev tools but for PHP. It replaces clunky var_dump() calls with a visual, searchable, and shareable debug experience. For teams maintaining Yii2 systems, this reduces debugging time by 30–50% (based on Spatie’s Laravel Ray adoption data). The free trial lets us test it risk-free, and the paid license unlocks advanced features like performance profiling. This aligns with our DX goals and could reduce technical debt in legacy systems."
*"Spatie’s Yii-Ray lets us send debug output from Yii2 to Ray, a desktop app that’s faster than var_dump() and more powerful than yii\debug\Module. Key benefits:
Ray::debug($model)).
Tradeoff: Requires Ray’s desktop app (free trial available), but it’s a net win for complex debugging."*
Alternatives: Stick with Yii’s built-in debugger or Kint if you prefer simplicity.How can I help you explore Laravel packages today?