PHPackages                             cvele/multitenant-bundle - 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. cvele/multitenant-bundle

ActiveSymfony-bundle[Utility &amp; Helpers](/categories/utility)

cvele/multitenant-bundle
========================

Symfony MultiTenantBundle

v0.1-alpha(10y ago)6721[1 issues](https://github.com/cvele/MultiTenantBundle/issues)MITPHPPHP &gt;=5.4

Since Feb 19Pushed 10y ago3 watchersCompare

[ Source](https://github.com/cvele/MultiTenantBundle)[ Packagist](https://packagist.org/packages/cvele/multitenant-bundle)[ Docs](http://github.com/cvele/MultiTenantBundle)[ RSS](/packages/cvele-multitenant-bundle/feed)WikiDiscussions master Synced 4w ago

READMEChangelog (1)Dependencies (4)Versions (2)Used By (0)

MultiTenantBundle
=================

[](#multitenantbundle)

When building SaaS applications more often then not you are going to need multi tenant solution for your users. This bundle aims to provide simple solution for multitenancy.

Bundle takes care only of multitenancy ignoring all other aspects of account system your app might need (for that take a look at FOSUserBundle or something similar).

[![SensioLabsInsight](https://camo.githubusercontent.com/a9224ae0bf66234522ce987e1be324b9229a1a383a24dabc17c54f67a6d199eb/68747470733a2f2f696e73696768742e73656e73696f6c6162732e636f6d2f70726f6a656374732f32623266613364362d336662662d343262632d626237342d6433336336373531393134382f6d696e692e706e67)](https://insight.sensiolabs.com/projects/2b2fa3d6-3fbf-42bc-bb74-d33c67519148)[![Build Status](https://camo.githubusercontent.com/242164a6da9c7ffa8e2154b22eeeef1a4ad528dc2360d3d237af6ce14b7d52b3/68747470733a2f2f7472617669732d63692e6f72672f6376656c652f4d756c746954656e616e7442756e646c652e7376673f6272616e63683d6d6173746572)](https://travis-ci.org/cvele/MultiTenantBundle)[![Latest Stable Version](https://camo.githubusercontent.com/303f192a45369f4ec6cc52d95fe2014833248e967a09e83b48754ef125a4c377/68747470733a2f2f706f7365722e707567782e6f72672f6376656c652f6d756c746974656e616e742d62756e646c652f762f737461626c65)](https://packagist.org/packages/cvele/multitenant-bundle)[![Total Downloads](https://camo.githubusercontent.com/a7209b7ffb70a23f364d3df3977ea2380a1ce454423c3d2849a801c5e33fc9eb/68747470733a2f2f706f7365722e707567782e6f72672f6376656c652f6d756c746974656e616e742d62756e646c652f646f776e6c6f616473)](https://packagist.org/packages/cvele/multitenant-bundle)[![License](https://camo.githubusercontent.com/5c370972985e7375f728bf50449e3b2250ebfa36ecb0db5ae207ad0cb9cb8a19/68747470733a2f2f706f7365722e707567782e6f72672f6376656c652f6d756c746974656e616e742d62756e646c652f6c6963656e7365)](https://packagist.org/packages/cvele/multitenant-bundle)

Prerequisites
-------------

[](#prerequisites)

This version of the bundle requires Symfony 2.4+ and PHP 5.4+.

Features
--------

[](#features)

- User can own and/or belong to multiple tenants
- Automatic SQL filtering of tenants on supported entities
- Entity listener inserts current tenant on supported entities
- Tenants can be switched on the fly, with URL parameter or via helper method
- Traits for entities that need to belong to tenants

TODO List
---------

[](#todo-list)

- Create full PHPUnit test coverage
- Make more sense in configuration variables
- Write documentation

**Note** *Bundle currently supports only Doctrine ORM for storage.*

Documentation
-------------

[](#documentation)

The source of the documentation is stored in the Resources/doc/ folder in this bundle.

[Read Documentation for master](https://github.com/cvele/MultiTenantBundle/blob/master/Resources/doc/index.md)

Reporting an issue or a feature request
---------------------------------------

[](#reporting-an-issue-or-a-feature-request)

Issues and feature requests are tracked in the [Github issue tracker](https://github.com/cvele/MultiTenantBundle/issues).

###  Health Score

23

—

LowBetter than 26% of packages

Maintenance17

Infrequent updates — may be unmaintained

Popularity15

Limited adoption so far

Community9

Small or concentrated contributor base

Maturity44

Maturing project, gaining track record

 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

Unknown

Total

1

Last Release

3784d ago

### Community

Maintainers

![](https://www.gravatar.com/avatar/095b28c4fb40753c5673a4cf7daaeb06cc667820cc2445312b9d30d9a2b07fe5?d=identicon)[cvele](/maintainers/cvele)

---

Top Contributors

[![cvele](https://avatars.githubusercontent.com/u/644800?v=4)](https://github.com/cvele "cvele (75 commits)")

---

Tags

User multitenancy

### Embed Badge

![Health badge](/badges/cvele-multitenant-bundle/health.svg)

```
[![Health](https://phpackages.com/badges/cvele-multitenant-bundle/health.svg)](https://phpackages.com/packages/cvele-multitenant-bundle)
```

###  Alternatives

[imanghafoori/laravel-video

A laravel package to stream video content.

28357.4k](/packages/imanghafoori-laravel-video)[dive-be/php-enum-utils

Those utilities you always need when dealing with native enumerations.

31297.6k1](/packages/dive-be-php-enum-utils)[swooinc/nova-countdown

A countdown card for Laravel Nova.

1224.5k](/packages/swooinc-nova-countdown)[hao-li/laravel-amount

183.1k](/packages/hao-li-laravel-amount)

PHPackages © 2026

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