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. warksit/tenant

ActiveLibrary

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 1mo ago

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 60% 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

1521d 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)
```

###  Alternatives

[hipsterjazzbo/landlord

A simple, single database multi-tenancy solution for Laravel 5.2+

613270.0k1](/packages/hipsterjazzbo-landlord)[nunomazer/laravel-samehouse

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

24239.0k](/packages/nunomazer-laravel-samehouse)[rinvex/laravel-tenants

Rinvex Tenants is a contextually intelligent polymorphic Laravel package, for single db multi-tenancy. You can completely isolate tenants data with ease using the same database, with full power and control over what data to be centrally shared, and what to be tenant related and therefore isolated from others.

823.4k10](/packages/rinvex-laravel-tenants)[solutosoft/yii-multitenant

The shared database used by all tenants

102.0k](/packages/solutosoft-yii-multitenant)[maize-tech/laravel-tenant-aware

Laravel Tenant Aware

141.1k](/packages/maize-tech-laravel-tenant-aware)[stefanbauer/landlord-extended

A simple, single database multi-tenancy solution for Laravel 5.2+

101.2k](/packages/stefanbauer-landlord-extended)

PHPackages © 2026

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