#psr14 — Public Fediverse posts
Live and recent posts from across the Fediverse tagged #psr14, aggregated by home.social.
-
Yii1: извлечение Active Record в отдельный composer пакет
Может показаться, что старый Yii1 в 2026 году уже никому не нужен. Но, на удивление, проектов, застрявших на этом фреймворке, довольно много. Чаще всего сдерживающими факторами от переезда являются размер проекта, какие‑то свои надстройки над фреймворком или отсутствие денег у бизнеса. Переезд сопряжён с рисками получить два проекта на годы вперёд. Параллельно требуются какие‑либо доработки, что требует вдвое больше ресурсов и от разработчиков, и от бизнеса. Последний год я активно изучаю устройство современных PHP‑фреймворков и PSR‑стандарты. Относительно недавно мне пришла мысль: а что ценного есть в Yii1 и что блокирует возможность быстро съехать на другой фреймворк? Ответ довольно банален — это Active Record. Можно сказать, что это сердце фреймворка. Почему же так получилось? Как ни странно, внешний API данного слоя довольно неплох даже в 2026 году, не говоря уже о 2008-м, когда он появился на свет, а скорее всего, намного раньше. Что же мы имеем из возможностей данной ORM?
https://habr.com/ru/articles/1069280/
#Yii1 #Active_Record #composer_пакет #миграция_с_Yii1 #рефакторинг_легаси #PHP_84 #PSR11 #PSR14 #PSR16 #ORM
-
#Tukio 2.0 for #PHP has been released! The premiere stand-alone #PSR14 event dispatcher now features near-instant listener lookups, a simplified API (with full backward compatibility), more automation, more robust ordering, better attribute support, and more!
Give it a try today.
https://peakd.com/hive-168588/@crell/tukio-20-released-event-dispatcher-for-php
-
#Tukio 2.0 for #PHP has been released! The premiere stand-alone #PSR14 event dispatcher now features near-instant listener lookups, a simplified API (with full backward compatibility), more automation, more robust ordering, better attribute support, and more!
Give it a try today.
https://peakd.com/hive-168588/@crell/tukio-20-released-event-dispatcher-for-php
-
If you use #Tukio in your #PHP application for #PSR14 #EventDispatcher support, version 2 is nearly ready! It should be released within less than a month.
If you want to preview it and make sure I didn't break anything unintentionally, I have tagged a 2.0.0-rc1 release, and the code is available in this PR:
https://github.com/Crell/Tukio/pull/24
Please report issues now while I can still fix them! 🙂 (Or let me know it's all good, which is also helpful.)
-
If you use #Tukio in your #PHP application for #PSR14 #EventDispatcher support, version 2 is nearly ready! It should be released within less than a month.
If you want to preview it and make sure I didn't break anything unintentionally, I have tagged a 2.0.0-rc1 release, and the code is available in this PR:
https://github.com/Crell/Tukio/pull/24
Please report issues now while I can still fix them! 🙂 (Or let me know it's all good, which is also helpful.)
-
I just tagged 1.6.0 of #Tukio, my #PSR14 event dispatcher for #PHP.
You can now tell the provider compiler what events you have, and it will generate constant-small-time lookup tables for you, making the overhead of the event system almost zero.
This is the last 7.4-compat release. 2.0 will require at least PHP 8.1, possibly 8.2, and involve a fair bit of cleanup. Expect very minor API changes, but I'll try to keep them to an absolute minimum and provide bridge code.
-
I just tagged 1.6.0 of #Tukio, my #PSR14 event dispatcher for #PHP.
You can now tell the provider compiler what events you have, and it will generate constant-small-time lookup tables for you, making the overhead of the event system almost zero.
This is the last 7.4-compat release. 2.0 will require at least PHP 8.1, possibly 8.2, and involve a fair bit of cleanup. Expect very minor API changes, but I'll try to keep them to an absolute minimum and provide bridge code.