tickertape

Fork of Symfony's Event Dispatcher compatible with PHP 5.2+.

  • 所有者: commaai/research
  • 平台:
  • 許可證: BSD 3-Clause "New" or "Revised" License
  • 分類:
  • 主題:
  • 喜歡:
    0
      比較:

Github星跟蹤圖

tickertape

Build Status
Project Status: Unsupported - The project has reached a stable, usable state but the author(s) have ceased all work on it. A new maintainer may be desired.
Latest Stable Version
License

This library is no longer supported or maintained as PHP 5.2 usage levels have finally dropped below 10%

Fork of Symfony's Event Dispatcher component compatible with PHP 5.2+.

Motivation

Symfony's Event Dispatcher component is a fantastic library, but it's only compatible with PHP 5.3+. While 97% of PHP servers run PHP 5.2 or higher,
32% of all servers are still running PHP 5.2 or lower (source).
It would be a shame to exempt this library from nearly half of the world's servers just because of a few version incompatibilities.

Differences from Symfony's Event Dispatcher component

The primary difference is naming conventions of the Symfony classes.
Instead of the \Symfony\Component\EventDispatcher namespace (and sub-namespaces), prefix the Symfony class names
with ehough_tickertape and follow the PEAR naming convention

A few examples of class naming conversions:

\Symfony\Component\EventDispatcher\EventDispatcher   ----->    ehough_tickertape_EventDispatcher
\Symfony\Component\EventDispatcher\Event             ----->    ehough_tickertape_Event

Usage

$dispatcher = new ehough_tickertape_EventDispatcher();  //implements ehough_tickertape_EventDispatcherInterface

$dispatcher->addListener('event_name', $callback);

$dispatcher->dispatch('event_name');

Releases and Versioning

Releases are synchronized with the upstream Symfony repository. e.g. ehough/tickertape v2.3.1 has merged the code
from symfony/EventDispatcher v2.3.1.

主要指標

概覽
名稱與所有者commaai/research
主編程語言Python
編程語言PHP (語言數: 3)
平台
許可證BSD 3-Clause "New" or "Revised" License
所有者活动
創建於2016-08-03 04:38:57
推送於2022-08-16 09:22:12
最后一次提交2016-10-08 01:32:31
發布數0
用户参与
星數4.1k
關注者數384
派生數1.2k
提交數36
已啟用問題?
問題數51
打開的問題數31
拉請求數14
打開的拉請求數6
關閉的拉請求數2
项目设置
已啟用Wiki?
已存檔?
是復刻?
已鎖定?
是鏡像?
是私有?