承接 semitexa/tenancy 相关项目开发

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

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

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

  • TenancyBootstrapper builds resolver chain from env config
  • Resolution strategies: path, subdomain, header, query param
  • TenantContext with coroutine-safe CoroutineContextStore
  • TenantResolverChain composable resolver ordering
  • Multi-layer tenancy via LayerDefinition
  • #[AsTenantLayerStrategy] attribute for custom layers
  • TenantRepositoryInterface for tenant lookup (config or database-backed)

统计信息

  • 总下载量: 202
  • 月度下载量: 0
  • 日度下载量: 0
  • 收藏数: 1
  • 点击次数: 2
  • 依赖项目数: 10
  • 推荐数: 1

GitHub 信息

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

其他信息

  • 授权协议: MIT
  • 更新时间: 2026-02-18

承接程序开发

PHP开发

VUE

Vue开发

前端开发

小程序开发

公众号开发

系统定制

数据库设计

云部署

网站建设

安全加固