PHPackages                             warksit/tenant - 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. [Utility &amp; Helpers](/categories/utility)
4. /
5. warksit/tenant

ActiveLibrary[Utility &amp; Helpers](/categories/utility)

warksit/tenant
==============

Simple tenant scoping and population on creating

2.01(9y ago)0565PHPPHP &gt;=5.4.0

Since Jun 3Pushed 4y ago1 watchersCompare

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

READMEChangelogDependenciesVersions (10)Used By (0)

Simple Package to deal with Multi-Tenant Application
----------------------------------------------------

[](#simple-package-to-deal-with-multi-tenant-application)

Work in progress inspired by @HipsterJazzbo but app about to go live so needed something I was in control of.

Add Service Provider

```
    'Warksit\Tenant\TenantServiceProvider',

```

Add Facade

```
    'Tenant'        	=> 'Warksit\Tenant\TenantFacade',

```

use WarksIt/tenant/TenantTrait;

in models to scope then by the tenant\_id

Publish config and update models and then an observer is set in the ServiceProvider. I found boot method of Eloquent model too unreliable to set there.

php artisan config:publish Warksit/tenant

###  Health Score

29

—

LowBetter than 57% of packages

Maintenance20

Infrequent updates — may be unmaintained

Popularity13

Limited adoption so far

Community7

Small or concentrated contributor base

Maturity64

Established project with proven stability

 Bus Factor1

Top contributor holds 100% 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 ~353 days

Recently: every ~593 days

Total

8

Last Release

1575d ago

Major Versions

v0.2.0 → 2.012016-10-14

### Community

Maintainers

![](https://www.gravatar.com/avatar/1b719bdf117b56840b92f66ce8905a45a645e907d5859aef363e43aea1fd6f22?d=identicon)[warksit](/maintainers/warksit)

---

Top Contributors

[![warksit](https://avatars.githubusercontent.com/u/5296633?v=4)](https://github.com/warksit "warksit (21 commits)")

---

Tags

tenant

### Embed Badge

![Health badge](/badges/warksit-tenant/health.svg)

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

PHPackages © 2026

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