ez-php/contracts
Composer 安装命令:
composer require ez-php/contracts
包简介
Shared interfaces and abstract base classes for the ez-php framework — zero framework coupling for standalone modules
README 文档
README
Shared interfaces and abstract base classes for the ez-php framework.
Contracts
| Contract | Type | Purpose |
|---|---|---|
ContainerInterface |
Interface | Dependency injection: bind(), make(), instance() |
ServiceProvider |
Abstract class | Two-phase lifecycle: register() and boot() |
ConfigInterface |
Interface | Configuration access via dot-notation keys |
DatabaseInterface |
Interface | Database queries, transactions, PDO access |
ExceptionHandlerInterface |
Interface | Convert exceptions to HTTP responses |
MiddlewareInterface |
Interface | HTTP middleware pipeline contract |
TranslatorInterface |
Interface | Translate keys with placeholder replacements |
JobInterface |
Interface | Queue job contract: handle(), fail(), attempt/retry accessors |
QueueInterface |
Interface | Queue driver contract: push(), pop(), size(), failed() |
RepositoryInterface |
Interface | Generic repository: find(), save(), delete() |
EzPhpException |
Class | Base exception for framework and modules |
统计信息
- 总下载量: 4.62k
- 月度下载量: 0
- 日度下载量: 0
- 收藏数: 0
- 点击次数: 0
- 依赖项目数: 27
- 推荐数: 0
其他信息
- 授权协议: MIT
- 更新时间: 2026-03-15