Download the PHP package janfish/swoft-saas without Composer

On this page you can find all versions of the php package janfish/swoft-saas. 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 swoft-saas

业务网关

配置说明

系统租客识别

字段 类型 说明
tenantId int 租户Id
db string 租户所属数据库
appId string 服务权限验证ID
appSecret string 服务权限验证KEY

nginx.conf需要传递IP和SCHEME信息

访问租客服务

租客凭证决定如何访问服务,但特殊资源需要指定访问服务,如资源类,像系统菜单批量更新,可以采用 App\Common\Remote\ServiceRpc实现,特别注意的是只有当当前不存在凭证时才能调用此方法

参数 类型 说明
callback Closure 回调函数,内部的服务调用会自动向本网关所有服务发送
serviceCode string 指定向某台代号的服务调用,默认所有服务
dbName string 指定向某台代号下的指定服务的指定数据库发送,默认所有数据库

访问租客服务(TenantId)

租客凭证决定如何访问服务,但特殊资源需要通过租客ID,访问对应的服务,如资源类,像系统菜单批量更新,可以采用 App\Common\Remote\TenantRpc实现,特别注意的是只有当前不存在凭证时才能调用此方法

参数 类型 说明
callback Closure 回调函数,内部的服务调用会自动向本网关所有服务发送
tenantId string 指定租客ID的调用,默认所有租客

系统快捷方法

获取当前登录用户

获取当前登录用户分组

获取当前租户

获取当前用户会话

获取当前用户扩展信息

判断当前用户是否为超级管理员

判断当前用户数据读取权限

权限名称 权限说明
PERSONAL 自己的数据
GROUP 小组成员数据
FULL 所有数据

服务端

数据库租户策略

停止注入的闭包函数

系统快捷方法

获取当前请求服务的租户id

获取当前运行得服务代号

获取当前数据库

异步调用

同步调用

对象存储

Excel读取(自适应xlsx、csv等格式)

支持格式 'Xlsx', 'Xls', 'Xml', 'Ods', 'Ods', 'Slk', 'Gnumeric', 'Html', 'Csv'

Excel写入(自适应xlsx、csv等格式)

支持格式 'Xlsx', 'Csv', 'Xls', 'Ods', 'Html', 'Tcpdf', 'Dompdf', 'Mpdf'

Rule规则 说明
Reader::DATETIME_ROLE 转换为日期时间
Reader::DATE_ROLE 转换为日期
Reader::TIME_ROLE 转换为时间
Reader::INTEGER_ROLE 转换为整形
Reader::STRING_ROLE 转换为字符串
Reader::DOUBLE_ROLE 转换浮点

大内存运行


All versions of swoft-saas with dependencies

PHP Build Version
Package Version
No informations.
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 janfish/swoft-saas contains the following files

Loading the files please wait ....