定制 bviguier/siglot 二次开发

按需修改功能、优化性能、对接业务系统,提供一站式技术支持

邮箱:yvsm@zunyunkeji.com | QQ:316430983 | 微信:yvsm316

bviguier/siglot

最新稳定版本:0.1.0

Composer 安装命令:

composer require bviguier/siglot

包简介

Signal and Slots for PHP

README 文档

README

Signals and slots is a mechanism introduced in Qt for communication between objects. It makes it easy to implement the observer pattern while avoiding boilerplate code. Siglot aims to provide similar features for the PHP language, with particular attention to Developer Experience (DX):

  • Easy to write, utilizing the first-class callable syntax
  • Compatible with existing auto-completion
  • Compatible with static analysis tools
  • No side effects with references

It can be regarded as an alternative to callbacks or event dispatchers, and it's particularly suited for event-driven programming, to decouple events' sender and receiver.

For more information, see the documentation.

Local Development

You can use dedicated Docker containers:

make build up bash-8.3

See make help for more information. Once you are in a suitable environment, use composer scripts to run tests, etc. (see composer list).

统计信息

  • 总下载量: 10
  • 月度下载量: 0
  • 日度下载量: 0
  • 收藏数: 2
  • 点击次数: 0
  • 依赖项目数: 0
  • 推荐数: 0

GitHub 信息

  • Stars: 2
  • Watchers: 1
  • Forks: 0
  • 开发语言: PHP

其他信息

  • 授权协议: MIT
  • 更新时间: 2024-08-26