gromit / oc-tenancy-plugin
Multitenancy for OctoberCMS.
Installs: 21
Dependents: 0
Suggesters: 0
Security: 0
Stars: 9
Watchers: 2
Forks: 2
Open Issues: 0
Type:october-plugin
Requires
- php: >=7.2
- composer/installers: ~1.0
This package is auto-updated.
Last update: 2024-12-24 01:54:40 UTC
README
GromIT.Tenancy is a plugin for OctoberCMS. It provides multitenancy functionality for OctoberCMS.
It has features such as
- single database and multi database setup
- prefixing cache for tenants
- isolated storage for every tenant
- isolated log files for every tenant
Quick start
Quick start is designed for work with mysql in multi-database way.
- Install the plugin as usual
- Create tenant database connection. Just make a copy of your mysql connection and set database option of new connection to null
- Add tenant disk to filesystem config. Use can use {tenant_id} as tenant identifier in root and url options
- Add tenant channel to logging config. Use can use {tenant_id} as tenant identifier in path option
For creating tenants databases username and password of tenant connection will be used.
Documentation
Full documentation can be found in docs directory.
Requirements
GromIT.Tenancy requires OctoberCMS v2.
Credits
Created by Sergey Kasyanov at GromIT.