PHPackages                             stancl/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. stancl/tenancy

ActiveLibrary[Framework](/categories/framework)

stancl/tenancy
==============

Automatic multi-tenancy for your Laravel application.

v3.10.0(2mo ago)4.3k7.6M↓14.7%487[6 issues](https://github.com/archtechx/tenancy/issues)[7 PRs](https://github.com/archtechx/tenancy/pulls)20MITPHPPHP ^8.0CI passing

Since Feb 9Pushed 3d ago75 watchersCompare

[ Source](https://github.com/archtechx/tenancy)[ Packagist](https://packagist.org/packages/stancl/tenancy)[ Fund](https://tenancyforlaravel.com/donate)[ GitHub Sponsors](https://github.com/stancl)[ RSS](/packages/stancl-tenancy/feed)WikiDiscussions master Synced 1w ago

READMEChangelog (10)Dependencies (20)Versions (118)Used By (20)

 [![Tenancy for Laravel logo](/art/logo.png)](https://tenancyforlaravel.com)

 [![Laravel 11.x](https://camo.githubusercontent.com/9cb8c3fd965570f0299aae3357cb0d72e6671523b40aae38ece73c6d8706460e/68747470733a2f2f696d672e736869656c64732e696f2f62616467652f6c61726176656c2d31302e782d7265642e737667)](https://laravel.com) [![Latest Stable Version](https://camo.githubusercontent.com/3a2b0c87c3193d6dc08d94a5bd3305e4b2452e9aaafc17765345abf3254399d7/68747470733a2f2f706f7365722e707567782e6f72672f7374616e636c2f74656e616e63792f76657273696f6e)](https://packagist.org/packages/stancl/tenancy) [![GitHub Actions CI status](https://github.com/stancl/tenancy/workflows/CI/badge.svg)](https://github.com/stancl/tenancy/actions) [![Donate](https://camo.githubusercontent.com/a5409ebe038bee6ef1c6241ee8ce4680f7cdde143f8d3cab05ab82ac6e321ee7/68747470733a2f2f696d672e736869656c64732e696f2f62616467652f446f6e6174652d253343332d726564)](https://github.com/stancl/tenancy/blob/3.x/DONATIONS.md)

[Tenancy for Laravel — stancl/tenancy](https://tenancyforlaravel.com)
=====================================================================

[](#tenancy-for-laravel--stancltenancy)

### *Automatic multi-tenancy for your Laravel app.*

[](#automatic-multi-tenancy-for-your-laravel-app)

You won't have to change a thing in your application's code.

- ✔️ No model traits to change database connection
- ✔️ No replacing of Laravel classes (`Cache`, `Storage`, ...) with tenancy-aware classes
- ✔️ Built-in tenant identification based on hostname (including second level domains)

### [Documentation](https://v4.tenancyforlaravel.com)

[](#documentation)

Documentation can be found here:

### [Need help?](https://github.com/stancl/tenancy/blob/3.x/SUPPORT.md)

[](#need-help)

### Credits

[](#credits)

- Package created by [Samuel Štancl](https://twitter.com/samuelstancl)
- Design help &amp; current logo by [Florian Karsten](https://floriankarsten.com/)

###  Health Score

78

—

ExcellentBetter than 100% of packages

Maintenance93

Actively maintained with recent releases

Popularity76

Solid adoption and visibility

Community50

Growing community involvement

Maturity83

Battle-tested with a long release history

 Bus Factor1

Top contributor holds 85.7% 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 ~27 days

Recently: every ~133 days

Total

96

Last Release

83d ago

Major Versions

v1.8.0 → v2.0.0-rc12019-09-23

1.x-dev → v2.0.0-rc22019-09-30

v2.3.9 → v3.0.0-rc12020-06-08

v2.3.12 → v3.1.32020-07-20

### Community

Maintainers

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

---

Top Contributors

[![stancl](https://avatars.githubusercontent.com/u/33033094?v=4)](https://github.com/stancl "stancl (1155 commits)")[![lukinovec](https://avatars.githubusercontent.com/u/34375937?v=4)](https://github.com/lukinovec "lukinovec (107 commits)")[![abrardev99](https://avatars.githubusercontent.com/u/54532330?v=4)](https://github.com/abrardev99 "abrardev99 (28 commits)")[![antonkomarev](https://avatars.githubusercontent.com/u/1849174?v=4)](https://github.com/antonkomarev "antonkomarev (9 commits)")[![drbyte](https://avatars.githubusercontent.com/u/404472?v=4)](https://github.com/drbyte "drbyte (6 commits)")[![stein-j](https://avatars.githubusercontent.com/u/44996807?v=4)](https://github.com/stein-j "stein-j (4 commits)")[![github-actions[bot]](https://avatars.githubusercontent.com/in/15368?v=4)](https://github.com/github-actions[bot] "github-actions[bot] (4 commits)")[![CristianTudorache](https://avatars.githubusercontent.com/u/11646571?v=4)](https://github.com/CristianTudorache "CristianTudorache (3 commits)")[![erikgaal](https://avatars.githubusercontent.com/u/1234268?v=4)](https://github.com/erikgaal "erikgaal (3 commits)")[![caneco](https://avatars.githubusercontent.com/u/502041?v=4)](https://github.com/caneco "caneco (3 commits)")[![JorgenSolli](https://avatars.githubusercontent.com/u/14874283?v=4)](https://github.com/JorgenSolli "JorgenSolli (2 commits)")[![viicslen](https://avatars.githubusercontent.com/u/39545521?v=4)](https://github.com/viicslen "viicslen (2 commits)")[![jonagoldman](https://avatars.githubusercontent.com/u/1297559?v=4)](https://github.com/jonagoldman "jonagoldman (2 commits)")[![domkrm](https://avatars.githubusercontent.com/u/10560668?v=4)](https://github.com/domkrm "domkrm (2 commits)")[![shalawani](https://avatars.githubusercontent.com/u/7045417?v=4)](https://github.com/shalawani "shalawani (1 commits)")[![timothydc](https://avatars.githubusercontent.com/u/13786303?v=4)](https://github.com/timothydc "timothydc (1 commits)")[![Trimod](https://avatars.githubusercontent.com/u/5537794?v=4)](https://github.com/Trimod "Trimod (1 commits)")[![vstyler96](https://avatars.githubusercontent.com/u/46312870?v=4)](https://github.com/vstyler96 "vstyler96 (1 commits)")[![wilsenhc](https://avatars.githubusercontent.com/u/13445515?v=4)](https://github.com/wilsenhc "wilsenhc (1 commits)")[![alec-superfile](https://avatars.githubusercontent.com/u/184137874?v=4)](https://github.com/alec-superfile "alec-superfile (1 commits)")

---

Tags

laravelmulti-tenancymultitenancysaassoftware-as-a-servicetenancytenantlaravelmulti-tenancymulti-databasetenancy

### Embed Badge

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

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

###  Alternatives

[laravel/horizon

Dashboard and code-driven configuration for Laravel queues.

4.1k91.3M277](/packages/laravel-horizon)[laravel/ai

The official AI SDK for Laravel.

9782.1M153](/packages/laravel-ai)[directorytree/ldaprecord-laravel

LDAP Authentication &amp; Management for Laravel.

5742.2M16](/packages/directorytree-ldaprecord-laravel)

PHPackages © 2026

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