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
其他信息
- 授权协议: MIT
- 更新时间: 2024-08-26