nubitio/platform
最新稳定版本:v0.3.1
Composer 安装命令:
composer require nubitio/platform
包简介
Platform foundation for Nubit Symfony apps: domain exceptions, tenant contracts, feature gates, quota contracts, messenger middleware, cache/file/export helpers.
README 文档
README
Platform foundation for Nubit Symfony apps: the framework-agnostic contracts and helpers that the rest of the stack builds on.
composer require nubitio/platform
What's inside
- Exceptions —
ServiceException,ValidationException,NotFoundException,DomainProblemException,QuotaExceededExceptionwithDomainErrorCode. Throw these from services;nubitio/api-platformmaps them to proper HTTP responses. - Tenant —
TenantContextplus contracts (TenantRegistryInterface,TenantConnectionSwitcherInterface,TenantDescriptorRegistryInterface,TenantBackupRunnerInterface). Single-tenant apps bind noop implementations; multi-tenant apps provide real ones. - Feature gates —
#[RequiresFeature]attribute +FeatureCheckerInterface. - Quota contracts —
QuotaEnforcerInterface,QuotaResourceResolverInterface. - Messenger —
TenantStampMiddleware/TenantContextMiddlewarepropagate tenant + actor through async messages. - Infra helpers —
CacheManager,FileManager(Flysystem),TenantRateLimiter,XlsExporter(PhpSpreadsheet),PdfExporter(WeasyPrint),PerTenantCommandconsole base class,TenantLogProcessor(Monolog). - HTTP —
ApiResponseJSON envelope (success/message/data).
Heavy integrations (Flysystem, PhpSpreadsheet, WeasyPrint, Monolog, OpenTelemetry) are suggest-ed — install them only if you use the corresponding helper.
License
MIT
统计信息
- 总下载量: 0
- 月度下载量: 0
- 日度下载量: 0
- 收藏数: 0
- 点击次数: 2
- 依赖项目数: 2
- 推荐数: 0
其他信息
- 授权协议: MIT
- 更新时间: 2026-06-11