π Full Documentation: Documentation
The Symfony Multi-Tenancy Bundle enables scalable, production-ready multi-tenancy for Symfony applications.
Ideal for SaaS platforms, region-based services, and multi-vendor e-commerce systems, this bundle is built around a database-per-tenant architecture, giving each tenant:
It integrates seamlessly with Doctrine and Symfonyβs service container, offering:
SwitchDbEventTenantEntityManager service for runtime isolationFor full usage examples and advanced configuration, see the documentation.
composer require hakam/multi-tenancy-bundle
Symfony Flex will automatically scaffold config, register the bundle, and create:
src/Entity/Main/
src/Entity/Tenant/
migrations/Main/
migrations/Tenant/
composer require hakam/multi-tenancy-bundle
Then register in config/bundles.php, copy the example hakam_multi_tenancy.yaml from docs, and create the required directories.
MIT Β© Ramy Hakam
How can I help you explore Laravel packages today?