定制 hakam/multi-tenancy-bundle 二次开发

按需修改功能、优化性能、对接业务系统,提供一站式技术支持

邮箱:yvsm@zunyunkeji.com | QQ:316430983 | 微信:yvsm316

hakam/multi-tenancy-bundle

最新稳定版本:v3.0.0-beta2

Composer 安装命令:

composer require hakam/multi-tenancy-bundle

包简介

Flexible and production-ready multi-tenancy bundle for Symfony.

README 文档

README

Multi-Tenancy Bundle (Desktop Wallpaper)

Action Status Total Downloads Symfony Flex

???? Full Documentation: Documentation

???? Overview

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:

  • A fully isolated database
  • Independent schema and migrations
  • Configurable connection parameters (host, driver, credentials)

It integrates seamlessly with Doctrine and Symfony’s service container, offering:

  • Automatic tenant database switching at runtime via SwitchDbEvent
  • Separate migration and fixture paths for main vs. tenant databases
  • Dedicated TenantEntityManager service for runtime isolation

For full usage examples and advanced configuration, see the documentation.

???? Quick Installation

1. Via Symfony Flex (Recommended)

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/

2. Manual Installation

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.

???? Useful Links

???? License

MIT © Ramy Hakam

统计信息

  • 总下载量: 32.64k
  • 月度下载量: 0
  • 日度下载量: 0
  • 收藏数: 110
  • 点击次数: 2
  • 依赖项目数: 0
  • 推荐数: 0

GitHub 信息

  • Stars: 110
  • Watchers: 7
  • Forks: 33
  • 开发语言: PHP

其他信息

  • 授权协议: MIT
  • 更新时间: 未知

承接程序开发

PHP开发

VUE

Vue开发

前端开发

小程序开发

公众号开发

系统定制

数据库设计

云部署

网站建设

安全加固