Download the PHP package hyperftars/tars without Composer
On this page you can find all versions of the php package hyperftars/tars. It is possible to download/install these versions without Composer. Possible dependencies are resolved automatically.
Please rate this library. Is it a good library?
Informations about the package tars
hyperftars-dev
注意:开发版bug多,不要用于生产
目录结构
安装
同时需要使用 JSON RPC 服务端安装
快速生成配置文件
配置自己的tars文件
文件位置config/autoload
其中home-api就是你放置根据协议生成的接口文件地址。
生成接口
自行定义/tars/example.tars文件
修改/tars/tars.proto.php配置
appName 和 serverName 字段要同tars服务名一致。
例如:
swapi·account //应用·服务名
然后执行命令
实现接口
使用注解路由的方式。 @RpcService(name="swapi.account.obj", protocol="tars", server="obj") 和之前的配置对应即可。
完成情况
- [x] 启动停止
- [x] 拉取配置
- [x] tcp tars协议
- [x] 存活上报
- [x] 打包上传
- [ ] 协议的打包解包
- [ ] 其他RPC协议
- [ ] 代码自动生成
- [ ] 监控信息上报
- [ ] 启动多个Servant
- [ ] 多个实现类
- [ ] 优化解码参数
关于发布
发布插件直接生成压缩包,然后上传tars服务器,但不会发布。
配置deployConfig.json
token获取方法:此页面你的tars地址/auth.html#/token 点击添加令牌
cmd发布[⭐推荐使用linux]
All versions of tars with dependencies
PHP Build Version
Package Version
Requires
php Version
>=7.2
hyperf/framework Version 2.0.*
hyperf/di Version 2.0.*
phptars/tars-registry Version 0.1.7
phptars/tars-utils Version 0.3.0
phptars/tars-report Version 0.1.3
phptars/tars-client Version 0.3.0
phptars/tars2php Version 0.3.2
hyperf/event Version ~2.0.0
hyperf/rpc-server Version ~2.0.0
hyperf/framework Version 2.0.*
hyperf/di Version 2.0.*
phptars/tars-registry Version 0.1.7
phptars/tars-utils Version 0.3.0
phptars/tars-report Version 0.1.3
phptars/tars-client Version 0.3.0
phptars/tars2php Version 0.3.2
hyperf/event Version ~2.0.0
hyperf/rpc-server Version ~2.0.0
The package hyperftars/tars contains the following files
Loading the files please wait ....