cvele / multitenant-bundle
Symfony MultiTenantBundle
Installs: 72
Dependents: 0
Suggesters: 0
Security: 0
Stars: 6
Watchers: 4
Forks: 1
Open Issues: 1
Type:symfony-bundle
Requires
- php: >=5.4
Requires (Dev)
- doctrine/doctrine-bundle: ~1.3
- symfony/console: ~2.3|~3.0
- symfony/framework-bundle: ~2.3|~3.0
- symfony/phpunit-bridge: ~2.7|~3.0
Suggests
- friendsofsymfony/user-bundle: MultiTenantBundle has been thurley tested to work with FOSUserBundle
This package is not auto-updated.
Last update: 2024-10-26 19:47:39 UTC
README
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).
Prerequisites
This version of the bundle requires Symfony 2.4+ and PHP 5.4+.
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
- Create full PHPUnit test coverage
- Make more sense in configuration variables
- Write documentation
Note Bundle currently supports only Doctrine ORM for storage.
Documentation
The source of the documentation is stored in the Resources/doc/ folder in this bundle.
Reporting an issue or a feature request
Issues and feature requests are tracked in the Github issue tracker.