#241241st of 358 in Backends, databases and hosting

tenancy

Laravel package that adds multi-tenancy without changing application code

Run it:RackNerd ↗ (opens in a new tab)RepoCloud ↗ (opens in a new tab)Affiliate links, no effect on a rank.

Releases and problems feed (RSS)

Stars
4.4k
License
MIT
Last commit
Nov 2026
Last release
Aug 2026
Language
PHP
Stars, last 30 weeks+138
27 Apr 2026: 4,292 stars4 May 2026: 4,300 stars11 May 2026: 4,306 stars18 May 2026: 4,309 stars25 May 2026: 4,314 stars1 Jun 2026: 4,322 stars8 Jun 2026: 4,326 stars15 Jun 2026: 4,334 stars22 Jun 2026: 4,340 stars29 Jun 2026: 4,344 stars6 Jul 2026: 4,350 stars13 Jul 2026: 4,352 stars20 Jul 2026: 4,358 stars27 Jul 2026: 4,360 stars3 Aug 2026: 4,361 stars10 Aug 2026: 4,370 stars17 Aug 2026: 4,376 stars24 Aug 2026: 4,383 stars31 Aug 2026: 4,385 stars7 Sept 2026: 4,389 stars14 Sept 2026: 4,392 stars21 Sept 2026: 4,396 stars28 Sept 2026: 4,403 stars5 Oct 2026: 4,408 stars12 Oct 2026: 4,412 stars19 Oct 2026: 4,416 stars26 Oct 2026: 4,419 stars2 Nov 2026: 4,422 stars9 Nov 2026: 4,425 stars16 Nov 2026: 4,429 stars23 Nov 2026: 4,430 stars

4,292 on 27 Apr 20264,430 on 23 Nov 2026

From GitHub's daily star counts.

Checked on GitHub.

Overview

stancl/tenancy is a PHP package that makes an existing Laravel app multi-tenant. It identifies tenants by hostname, including second-level domains, and switches the database connection per tenant without model traits or replacing Laravel classes such as Cache and Storage. The README points to v4 documentation on a separate site.

Who it is for: Laravel developers building multi-tenant SaaS apps

Strengths

  • No model traits needed to switch the database connection per tenant
  • Cache, Storage and similar Laravel classes are kept, not replaced
  • Built-in hostname tenant identification, including second-level domains
  • MIT license with CI workflow and a dedicated documentation site

Weaknesses

  • Laravel only; not usable in other PHP frameworks
  • Not an AI project and has no AI features
  • README badge says Laravel 10.x while its alt text says 11.x
  • README has no install steps or tenancy models; those are in external docs

What it needs

  • no GPU
  • Docker + Compose
  • Needs Laravel, PHP

What changed

From the release notes. No flag means the note does not say so, not that the upgrade is safe.

Known problems

Reported, then fixed by a linked change

Titles are the reporters' own words, taken from the project's GitHub issues and ranked by reactions. We have not tried to reproduce any of them.

Also in Backends, databases and hosting

See all 358
Also in Backends, databases and hosting
RankProjectScore
#239mallSpring Boot e-commerce backend with admin and storefront APIs Live demo ↗ (opens in a new tab)85.1k starsApache-2.063 out of 100
#240faasServerless functions platform with auto-scaling and language templates26.3k starscustom license63 out of 100
#242squidexHeadless CMS with REST API, OData filtering and Swagger, built on ASP.NET Core2.5k starsMIT63 out of 100
#243openchoreoKubernetes developer platform with Backstage portal, CI, GitOps and observability1.9k starsApache-2.063 out of 100
#244dante-cloudSpring Cloud microservice base that also runs as a monolith from one codebase972 starsApache-2.063 out of 100