Download the PHP package tsaotai/tsaotai-pro without Composer

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

TsaoTai Pro(后端 PHP)

版本:2026.1.12 · 日期:2026-09-07
Composer:tsaotai/tsaotai-pro
命名空间:tsaotai\pro\
源码:github.com/tsaotai/tsaotai-pro
对齐:tsaotai/tsaotai-addons

ThinkPHP 8 上的配置中后台引擎:资源定义 + Gateway 分发 + Table/Form/Grid 后端能力。
不是插件壳;不替代 addons、登录、ACL、主题。

前端另见产品仓 packages/tsaotai-pro(运行时 TsaoTai.table / form / grid)。
发版细则:PACKAGING.md。


提供 / 不提供

提供 不提供
ProResource::define 与 meta / capabilities 业务 *Resource.php
ProGateway 动作分发 /api/pro/... 路由(宿主声明)
list / get / save / delete / dic / batch / reorder CSRF、captcha、Session 登录实现
导入导出 + ProTask 前端 JS
Grid SSRM 应用中心 / 租户勾选
ProHost + Contracts;Think Service 只 boot Host 脚手架 CLI

安装

Think 发现 extra.think.services → tsaotai\pro\Service:

  1. 加载包内 config.php → config('tsaotai_pro')
  2. ProHost::bootFromConfig(...)(auto_boot_host => false 可关)
  3. 不自动挂路由

宿主最小接入

1. 路由

2. 控制器实现 Responder

可选 proUser(): ?array 供限流 / 审计。

3. 业务资源

约定路径:{addons_root}/{plugin}/pro/{Name}Resource.php

4. 注入 Host(推荐)

包默认 auditor = noop;无 root_path() 时必须配置 addons_path。


能力与动作

capabilities 动作
core(默认) list get save delete dic meta
batch batch(delete 须 captcha)
reorder reorder
import-export export import template
grid-ssrm grid / rows

异步任务下载 HMAC:配置 tsaotai_pro.download_secret(或宿主 common.app_key / app.app_key / common.app_id)。无密钥则拒绝签发 token。


配置 tsaotai_pro

键 默认 说明
auto_boot_host true Service 是否自动 boot
addons_path '' 空则 root_path()/addons;再无则抛错
runtime_path '' 空则 runtime_path()
rate_limit_export 10 导出每用户每分钟
download_secret '' 下载 HMAC;空则回退其它键

安全模型(宿主责任)


目录


从旧命名迁移

旧 新
tsaotai/pro tsaotai/tsaotai-pro
TsaoTai\Pro\* tsaotai\pro\{Resource,Http,Query,Io}\*

无 class_alias。


测试


License

Apache-2.0


All versions of tsaotai-pro with dependencies

PHP Build Version
Package Version
Requires php Version >=8.1
topthink/framework Version ^8.0
topthink/think-orm Version ^3.0|^4.0
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 tsaotai/tsaotai-pro contains the following files

Loading the files please wait ...