dazza-dev/multi-tenant-sync
Composer 安装命令:
composer create-project dazza-dev/multi-tenant-sync
包简介
Multi-Tenant Sync is a system designed to efficiently execute queries or functions in Software as a Service (SAAS) applications that employ the separate database per tenant method.
README 文档
README
Multi-Tenant Sync
Multi-Tenant Sync is a system designed to efficiently execute queries or functions in Software as a Service (SAAS) applications that employ the separate database per tenant method. This system is built using Laravel 11 on the backend and Vue.js 3 on the frontend, and requires at least PHP 8.3 for optimal operation.
Installation
To install Multi-Tenant Sync, follow these steps:
-
Clone this repository:
git clone https://github.com/dazza-dev/multi-tenant-sync.git
-
Navigate to the project directory:
cd multi-tenant-sync -
Install PHP dependencies with Composer and Sail:
composer install && ./vendor/bin/sail up -d -
Run the database migrations:
./vendor/bin/sail artisan migrate
-
Start the job queue service:
./vendor/bin/sail artisan queue:work
Usage
The usage of Multi-Tenant Sync is divided into the following steps:
-
Create a New Project: Create a new project by clicking the "New Project" button. Fill in the connection details to the main project database.
-
Add Query: Once the project is created, add the query that will be used in the main database to retrieve the list of tenants with the connection data of each tenant's database.
-
Execute Job: Enter the project you created and execute a job by clicking the "Execute Job" button. This will start the execution of the query on each tenant's database and synchronize the results.
Requirements
Make sure you have the following installed before starting:
- PHP 8.3
- Composer
- Node.js >= 12
- NPM or Yarn
Contributions
Contributions are welcome. If you find any bugs or have ideas for improvements, please open an issue or send a pull request. Make sure to follow the contribution guidelines.
Author
Multi-Tenant Sync was created by DAZZA.
License
This project is licensed under the MIT License.
dazza-dev/multi-tenant-sync 适用场景与选型建议
dazza-dev/multi-tenant-sync 是一款 基于 PHP 开发的 Composer 扩展包,目前已累计 1 次下载、GitHub Stars 达 0, 最近一次更新时间为 2024 年 09 月 26 日, 在 PHP 生态内属于活跃度较高的组件。
它主要适用于以下技术方向: 「framework」 「laravel」 「saas」 「software as a service」 等业务场景。在实际项目中,围绕这些方向常见需要落地的问题包括:接口对接、性能调优、并发安全、与既有框架(Laravel / ThinkPHP / Yii / Webman 等)的兼容适配,以及生产环境的日志埋点与稳定性保障。
我们在过去多个企业项目中使用过 dazza-dev/multi-tenant-sync 或与其功能相近的方案,如果你在选型或落地过程中遇到问题,例如 版本兼容、二次改造、私有化封装、与内部系统对接、生产 BUG 排查,欢迎联系我们协助评估。
基于 dazza-dev/multi-tenant-sync 在你已有业务上做功能扩展、字段裁剪、UI 适配、与内部账号 / 权限 / 日志系统的深度对接。
线上偶发问题、内存泄漏、慢查询、并发异常等排查修复;针对高流量场景做缓存、队列、索引层面的调优。
承接完整的项目从需求 → 设计 → 开发 → 上线 → 长期运维;也可按月提供技术保姆服务。
与 dazza-dev/multi-tenant-sync 相关的其它包
同方向 / 同关键字的高下载量 PHP Composer 包推荐,方便对比选型:
PHP Framework HLEB2 is the foundation of the web application. Provides ease of development and application performance.
Laravel Plans is a package for SaaS apps that need management over plans, features, subscriptions, events for plans or limited, countable features.
Asaas.com PHP API v3 Wrapper
Adaptaçao Asaas.com PHP API Wrapper para PHP 5.6
Alfabank REST API integration
This bundle provides tools to build multi-tenant architecture for PHP applications.
统计信息
- 总下载量: 1
- 月度下载量: 0
- 日度下载量: 0
- 收藏数: 0
- 点击次数: 16
- 依赖项目数: 0
- 推荐数: 0
其他信息
- 授权协议: MIT
- 更新时间: 2024-09-26
