定制 ustal/stream-hub-core 二次开发

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

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

ustal/stream-hub-core

最新稳定版本:v1.0.0

Composer 安装命令:

composer require ustal/stream-hub-core

包简介

StreamHub core: event-driven interaction engine with plugin system

README 文档

README

CI

Framework-agnostic headless core for Stream Hub.

stream-hub-core is no longer positioned as a pluggable UI engine. In the v1 direction it focuses on stream models, low-level write commands, command buses, backend contracts, and reusable framework-agnostic building blocks.

Current Scope

The package currently provides:

  • core models:
    • Stream
    • StreamEvent
    • StreamParticipant
  • backend contract:
    • StreamBackendInterface
  • application context contract:
    • StreamContextInterface
  • command contracts:
    • StreamCommandInterface
    • StreamCommandHandlerInterface
  • buses:
    • CommandBusInterface
    • ModelCommandBusInterface
    • CommandBus
    • GuardedCommandBus
  • thin application facade:
    • StreamHubInterface
    • StreamHub
  • guard contracts for high-level commands:
    • StreamCommandGuardInterface
    • GuardDecision
  • low-level core commands and handlers:
    • create stream
    • join stream
    • append stream event
    • mark stream read
  • identifier generation:
    • IdentifierGeneratorInterface
    • RandomHexIdentifierGenerator
    • UuidV4IdentifierGenerator
    • UuidV7IdentifierGenerator

Design Notes

  • Core models are not persistence entities.
  • Project-specific enrichment belongs in backend adapters and mappers.
  • High-level feature commands may be guarded before handler execution.
  • Low-level model commands should stay internal and should not be guarded.
  • High-level feature workflows should orchestrate low-level core commands instead of writing directly to storage when a generic low-level command already exists.
  • Business authorization rules should live in the application or policy layer, not in the backend contract.

Development

Run tests:

make test

Run deptrac:

vendor/bin/deptrac analyse

统计信息

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

GitHub 信息

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

其他信息

  • 授权协议: MIT
  • 更新时间: 2026-04-07

承接程序开发

PHP开发

VUE

Vue开发

前端开发

小程序开发

公众号开发

系统定制

数据库设计

云部署

网站建设

安全加固