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.

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 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") 和之前的配置对应即可。

完成情况

关于发布

发布插件直接生成压缩包,然后上传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
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 hyperftars/tars contains the following files

Loading the files please wait ....