semitexa/tenancy
最新稳定版本:2026.05.08.1640
Composer 安装命令:
composer require semitexa/tenancy
包简介
Semitexa Tenancy - tenant resolution, scoped context, and multi-tenant application support
README 文档
README
Tenant resolution, scoped context, and multi-tenant application support.
Purpose
Resolves the current tenant per request through a configurable chain of strategies (path, subdomain, header, query param). Stores the resolved tenant in coroutine-safe context for downstream use by ORM, Cache, Storage, and other tenant-aware packages.
Role in Semitexa
Depends on Core. Depended on by ORM, Cache, Search, Media, Scheduler, Workflow, and optionally Locale. Tenancy is foundational to the multi-tenant architecture — when active, ORM scopes queries, Cache namespaces keys, and Storage isolates paths, all transparently based on the resolved tenant.
Key Features
TenancyBootstrapperbuilds resolver chain from env config- Resolution strategies: path, subdomain, header, query param
TenantContextwith coroutine-safeCoroutineContextStoreTenantResolverChaincomposable resolver ordering- Multi-layer tenancy via
LayerDefinition #[AsTenantLayerStrategy]attribute for custom layersTenantRepositoryInterfacefor tenant lookup (config or database-backed)
统计信息
- 总下载量: 202
- 月度下载量: 0
- 日度下载量: 0
- 收藏数: 1
- 点击次数: 2
- 依赖项目数: 10
- 推荐数: 1
其他信息
- 授权协议: MIT
- 更新时间: 2026-02-18