Download the PHP package sinceleo/hf-tenant without Composer

On this page you can find all versions of the php package sinceleo/hf-tenant. It is possible to download/install these versions without Composer. Possible dependencies are resolved automatically.

FAQ

After the download, you have to make one include require_once('vendor/autoload.php');. After that you have to import the classes with use statements.

Example:
If you use only one package a project is not needed. But if you use more then one package, without a project it is not possible to import the classes with use statements.

In general, it is recommended to use always a project to download your libraries. In an application normally there is more than one library needed.
Some PHP packages are not free to download and because of that hosted in private repositories. In this case some credentials are needed to access such packages. Please use the auth.json textarea to insert credentials, if a package is coming from a private repository. You can look here for more information.

  • Some hosting areas are not accessible by a terminal or SSH. Then it is not possible to use Composer.
  • To use Composer is sometimes complicated. Especially for beginners.
  • Composer needs much resources. Sometimes they are not available on a simple webspace.
  • If you are using private repositories you don't need to share your credentials. You can set up everything on our site and then you provide a simple download link to your team member.
  • Simplify your Composer build process. Use our own command line tool to download the vendor folder as binary. This makes your build process faster and you don't need to expose your credentials for private repositories.
Please rate this library. Is it a good library?

Informations about the package hf-tenant

Tenancy for Hyperf

介绍

一个轻量级租户系统,支持多租户,支持跨租户请求,支持跨租户队列,支持跨租户数据库,支持跨租户缓存,支持跨租户日志,支持跨租户事件,支持跨租户路由,支持跨租户服务,支持跨租户配置,支持跨租户中间件,支持跨租户控制器,支持跨租户模型,支持跨租户服务提供者,

基于:Laravel Tenancy为灵感开发的一套简易版租户插件,让Hyperf也可以支持多租户,像Laravel Tenancy一样开发单租户业务一样,通过组件实现多租户的模式,做到真正的数据隔离 实现方式:通过中间件实现租户编号的获取,并设置到协程上下文中,通过重写数据库连接,在请求数据库时,自动切换到对应租户的数据库连接

安装

配置部分

生成配置文件

修改缓存配置

初始化

执行构建租户管理迁移文件  php bin/hyperf.php tenants:init 

使用说明

获取租户编号的方式有两种:

一、前端接口请求时在header中携带租户编号,如: X-TENANT-ID:xxxx

二、在请求时通过域名获取租户编号,如:http://baidu.domain.com 内部将通过域名获取租户编号

租户操作

数据迁移

队列使用

发送队列


All versions of hf-tenant with dependencies

PHP Build Version
Package Version
Requires php Version >=8.2
hyperf/engine Version ^2.8
hyperf/coroutine Version ^3.1
hyperf/logger Version ^3.1
hyperf/http-server Version ^3.1
hyperf/di Version ^3.1
hyperf/cache Version ^3.1
guzzlehttp/guzzle Version ^7.7
hyperf/paginator Version ^3.1
hyperf/resource Version ^3.1
hyperf/framework Version ^3.1
hyperf/database Version ^3.1
hyperf/db-connection Version ^3.1
hyperf/config Version ^3.1
hyperf/redis Version ^3.1
hyperf/model-cache Version ^3.1
hyperf/amqp Version ^3.1
hyperf/async-queue Version ^3.1
Composer command for our command line client (download client) This client runs in each environment. You don't need a specific PHP version etc. The first 20 API calls are free. Standard composer command

The package sinceleo/hf-tenant contains the following files

Loading the files please wait ....