awd-studio/es-lib
Composer 安装命令:
composer require awd-studio/es-lib
包简介
An advanced event-sourcing library for PHP 8.3+ designed to handle domain events effectively.
README 文档
README
This is a PHP library designed to simplify the implementation of Event Sourcing patterns in your applications. It provides a robust set of tools and abstractions to manage aggregates, events, event storage, and snapshots, enabling you to build scalable, maintainable, and auditable systems.
What is Event Sourcing?
Event Sourcing is a design pattern where changes to an application's state are captured as a sequence of events. Instead of storing only the current state, the application maintains a history of all events that have occurred. This approach offers several advantages, including:
- Auditability: Every state change is recorded, providing a complete history.
- Scalability: Events can be processed asynchronously or in parallel.
- Reconstructability: Past states can be rebuilt by replaying events.
Features
- Aggregates: Manage domain entities with built-in support for event sourcing.
- Events: Define and handle domain events easily.
- Event Store: Persist and retrieve events from a configurable storage backend.
- Repositories: Simplify loading and saving aggregates.
- Snapshots: Optimize performance by storing snapshots of aggregate states.
Installation
You can install ES Lib via Composer:
composer install awd-studio/es-lib
Usage
Se the example section.
Integration
To use the library in your projects, you need to implement such interfaces:
# Storage / DB layer ## Reading \AwdEs\Event\Storage\Fetcher\EventFetcher::class \AwdEs\Event\Storage\Fetcher\Handling\CriteriaHandlingCase::class ## Writing \AwdEs\Event\Storage\Recorder\EventRecorder::class # Metadata ## Applying \AwdEs\Event\Applying\EventApplier::class ## Reading metadata \AwdEs\Event\Handling\EventHandlerMethodResolver::class \AwdEs\Meta\Event\EventMetadataResolver::class
License
This library is licensed under the MIT License. See the LICENSE file for details.
awd-studio/es-lib 适用场景与选型建议
awd-studio/es-lib 是一款 基于 PHP 开发的 Composer 扩展包,目前已累计 47 次下载、GitHub Stars 达 0, 最近一次更新时间为 2025 年 03 月 19 日, 在 PHP 生态内属于活跃度较高的组件。
它主要适用于以下技术方向: 「php」 「library」 「es」 「event-sourcing」 「domain-driven-design」 等业务场景。在实际项目中,围绕这些方向常见需要落地的问题包括:接口对接、性能调优、并发安全、与既有框架(Laravel / ThinkPHP / Yii / Webman 等)的兼容适配,以及生产环境的日志埋点与稳定性保障。
我们在过去多个企业项目中使用过 awd-studio/es-lib 或与其功能相近的方案,如果你在选型或落地过程中遇到问题,例如 版本兼容、二次改造、私有化封装、与内部系统对接、生产 BUG 排查,欢迎联系我们协助评估。
基于 awd-studio/es-lib 在你已有业务上做功能扩展、字段裁剪、UI 适配、与内部账号 / 权限 / 日志系统的深度对接。
线上偶发问题、内存泄漏、慢查询、并发异常等排查修复;针对高流量场景做缓存、队列、索引层面的调优。
承接完整的项目从需求 → 设计 → 开发 → 上线 → 长期运维;也可按月提供技术保姆服务。
与 awd-studio/es-lib 相关的其它包
同方向 / 同关键字的高下载量 PHP Composer 包推荐,方便对比选型:
Immutable CQRS/ES library for Daikon-CQRS projects.
Inbox pattern process implementation for your Laravel Applications
Use case driven EventSourcing - Let go of the Aggregate with the Dynamic Consistency Boundary (DCB) pattern.
Claude Code extension for PHP: audits (architecture, DDD, security, performance, PSR, design patterns, Docker, CI/CD, tests, docs), 3-level code review, automated bug fix, generators (DDD, CQRS, GoF patterns, PSR, tests, documentation, Docker, CI/CD), code explanation, refactoring. 26 commands, 62 a
Production-ready distributed tracing SDK for Laravel with event-sourced architecture, async HTTP transport, and cross-service context propagation
Core library that defines common interfaces used by the rest of the intahwebz..
统计信息
- 总下载量: 47
- 月度下载量: 0
- 日度下载量: 0
- 收藏数: 0
- 点击次数: 11
- 依赖项目数: 2
- 推荐数: 0
其他信息
- 授权协议: MIT
- 更新时间: 2025-03-19