Download the PHP package funkymed/tenant-aware-bundle without Composer
On this page you can find all versions of the php package funkymed/tenant-aware-bundle. It is possible to download/install these versions without Composer. Possible dependencies are resolved automatically.
Download funkymed/tenant-aware-bundle
More information about funkymed/tenant-aware-bundle
Files in funkymed/tenant-aware-bundle
Package tenant-aware-bundle
Short Description A Symfony bundle for multi-tenant applications
License MIT
Homepage https://github.com/funkymed/tenant-aware-bundle
Informations about the package tenant-aware-bundle
Tenant-aware-bundle
Tenant Aware Bundle will help you to manage multiple configuration of your app.
The configuration come from database.
Installation
create your a configuration config/packages/tenant_aware.yaml
Modify you Kernel.php like this to use a cache by tenant
and then replace bin/console
with this code to make it compatible
Now you can use the default commands of symfony but with a tenant configuration
The param tenant is the hostname you want to get the configuration
Configuration
Added configuration of your database in .env
and config/packages/doctrine.yaml
Create tenant database
Add content in your database to manager different hostname (see Tenant Entity)
Add your Processor
Add more service
You can process other services than the database You could want to change an AWS S3 per hostame, or Redis, and or RabbitMQ
Just copy TenantAwareBundle/DependencyInjection/Compiler/Processor/DummyProcessor.php
And put in your DependencyInjection/Compiler/Processor
namespace
Add in your processor what you want to repace
Update the configuration
You can add all the processors you want.
You also can replace the Entity Tenant to put the fields you need to manage your tenants.
All versions of tenant-aware-bundle with dependencies
symfony/framework-bundle Version ^6.0
symfony/console Version ^6.0
doctrine/orm Version ^3.2