PHPackages                             semitexa/tenancy - PHPackages - PHPackages  [Skip to content](#main-content)[PHPackages](/)[Directory](/)[Categories](/categories)[Trending](/trending)[Leaderboard](/leaderboard)[Changelog](/changelog)[Analyze](/analyze)[Collections](/collections)[Log in](/login)[Sign up](/register)

1. [Directory](/)
2. /
3. [Framework](/categories/framework)
4. /
5. semitexa/tenancy

ActiveSemitexa-module[Framework](/categories/framework)

semitexa/tenancy
================

Semitexa Tenancy - tenant resolution, scoped context, and multi-tenant application support

2026.06.21.0352(1w ago)124011MITPHPPHP ^8.4

Since Mar 23Pushed 1mo agoCompare

[ Source](https://github.com/semitexa/semitexa-tenancy)[ Packagist](https://packagist.org/packages/semitexa/tenancy)[ RSS](/packages/semitexa-tenancy/feed)WikiDiscussions master Synced today

READMEChangelogDependencies (5)Versions (18)Used By (11)

Semitexa Tenancy
================

[](#semitexa-tenancy)

Tenant resolution, scoped context, and multi-tenant application support.

Purpose
-------

[](#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
----------------

[](#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
------------

[](#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)

###  Health Score

49

—

FairBetter than 94% of packages

Maintenance93

Actively maintained with recent releases

Popularity15

Limited adoption so far

Community23

Small or concentrated contributor base

Maturity60

Established project with proven stability

 Bus Factor1

Top contributor holds 65.3% of commits — single point of failure

How is this calculated?**Maintenance (25%)** — Last commit recency, latest release date, and issue-to-star ratio. Uses a 2-year decay window.

**Popularity (30%)** — Total and monthly downloads, GitHub stars, and forks. Logarithmic scaling prevents top-heavy scores.

**Community (15%)** — Contributors, dependents, forks, watchers, and maintainers. Measures real ecosystem engagement.

**Maturity (30%)** — Project age, version count, PHP version support, and release stability.

###  Release Activity

Cadence

Every ~9 days

Recently: every ~19 days

Total

14

Last Release

13d ago

Major Versions

1.0.9 → 2026.04.03.12402026-04-03

### Community

Maintainers

![](https://www.gravatar.com/avatar/e94044da9f4c76cc5cd09ef0c693a68065787e10d0d18edfeedbef3573a9163a?d=identicon)[syntaxwanderer](/maintainers/syntaxwanderer)

---

Top Contributors

[![syntaxwanderer](https://avatars.githubusercontent.com/u/1311643?v=4)](https://github.com/syntaxwanderer "syntaxwanderer (47 commits)")[![goosyboosy](https://avatars.githubusercontent.com/u/13351014?v=4)](https://github.com/goosyboosy "goosyboosy (15 commits)")[![needalicense](https://avatars.githubusercontent.com/u/13330467?v=4)](https://github.com/needalicense "needalicense (9 commits)")[![tarashanych](https://avatars.githubusercontent.com/u/49571976?v=4)](https://github.com/tarashanych "tarashanych (1 commits)")

---

Tags

isolationmulti-tenantsemitexatenancytenant-contextisolationmulti-tenanttenancysemitexatenant-context

### Embed Badge

![Health badge](/badges/semitexa-tenancy/health.svg)

```
[![Health](https://phpackages.com/badges/semitexa-tenancy/health.svg)](https://phpackages.com/packages/semitexa-tenancy)
```

###  Alternatives

[stancl/tenancy

Automatic multi-tenancy for your Laravel application.

4.4k8.1M47](/packages/stancl-tenancy)[tenancy/framework

Creating multi tenant saas from your Laravel app with ease

13246.2k42](/packages/tenancy-framework)[nunomazer/laravel-samehouse

A multi-tenant Laravel package, based on single database, simple and ease to use

24254.7k](/packages/nunomazer-laravel-samehouse)

PHPackages © 2026

[Directory](/)[Categories](/categories)[Trending](/trending)[Changelog](/changelog)[Analyze](/analyze)
