承接 maksimovic/service-bus 相关项目开发

从需求分析到上线部署,全程专人跟进,保证项目质量与交付效率

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

maksimovic/service-bus

Composer 安装命令:

composer require maksimovic/service-bus

包简介

PHP Enterprise Service Bus Implementation supporting CQRS and DDD

README 文档

README

Fork of prooph/service-bus — maintained for PHP 8.1–8.5 compatibility.

PHP lightweight message bus supporting CQRS and micro services.

CI

Installation

$ composer require maksimovic/service-bus

Requires PHP 8.1 or later.

Fork rationale

The upstream package was last released in 2021 and is no longer maintained. This fork:

  • Bumps minimum PHP to 8.1
  • Fixes implicit nullable type deprecations (PHP 8.4+)
  • Upgrades PHPUnit to ^10.5 with schema migration
  • Migrates tests from phpspec/prophecy to native PHPUnit mocks
  • Upgrades react/promise to ^3.3 (PromisePromiseInterface, done() removal)
  • Replaces Travis CI with GitHub Actions (PHP 8.1–8.5 matrix)

Behavior is otherwise unchanged.

Messaging API

prooph/service-bus is a lightweight messaging facade. It allows you to define the API of your model with the help of messages:

  1. Command messages describe actions your model can handle.
  2. Event messages describe things that happened while your model handled a command.
  3. Query messages describe available information that can be fetched from your (read) model.

Quick Start

<?php

use Prooph\ServiceBus\CommandBus;
use Prooph\ServiceBus\Example\Command\EchoText;
use Prooph\ServiceBus\Plugin\Router\CommandRouter;

$commandBus = new CommandBus();

$router = new CommandRouter();

$router->route('Prooph\ServiceBus\Example\Command\EchoText')
    ->to(function (EchoText $aCommand): void {
        echo $aCommand->getText();
    });

$router->attachToMessageBus($commandBus);

$echoText = new EchoText('It works');
$commandBus->dispatch($echoText);

// Output: It works

Documentation

See the original documentation at prooph/service-bus.

License

Released under the BSD-3-Clause License.

maksimovic/service-bus 适用场景与选型建议

maksimovic/service-bus 是一款 基于 PHP 开发的 Composer 扩展包,目前已累计 2.09k 次下载、GitHub Stars 达 0, 最近一次更新时间为 2026 年 04 月 16 日, 在 PHP 生态内属于活跃度较高的组件。

它主要适用于以下技术方向: 「messaging」 「ddd」 「cqrs」 「prooph」 等业务场景。在实际项目中,围绕这些方向常见需要落地的问题包括:接口对接、性能调优、并发安全、与既有框架(Laravel / ThinkPHP / Yii / Webman 等)的兼容适配,以及生产环境的日志埋点与稳定性保障。

我们在过去多个企业项目中使用过 maksimovic/service-bus 或与其功能相近的方案,如果你在选型或落地过程中遇到问题,例如 版本兼容、二次改造、私有化封装、与内部系统对接、生产 BUG 排查,欢迎联系我们协助评估。

围绕 maksimovic/service-bus 我们能提供哪些服务?
定制开发 / 二次开发

基于 maksimovic/service-bus 在你已有业务上做功能扩展、字段裁剪、UI 适配、与内部账号 / 权限 / 日志系统的深度对接。

BUG 修复 & 性能优化

线上偶发问题、内存泄漏、慢查询、并发异常等排查修复;针对高流量场景做缓存、队列、索引层面的调优。

项目外包 & 长期维护

承接完整的项目从需求 → 设计 → 开发 → 上线 → 长期运维;也可按月提供技术保姆服务。

yvsm@zunyunkeji.com QQ:316430983 微信:yvsm316 西安尊云信息科技 · 专注 PHP / Go / 分布式系统研发

统计信息

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

GitHub 信息

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

其他信息

  • 授权协议: BSD-3-Clause
  • 更新时间: 2026-04-16