Download the PHP package darkgel/thrift-manager without Composer

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

thrift-manager

该thrift manager组件用于在laravel上管理thrift调用,使得thrift调用更加方便

安装

b. 运行命令:composer dump-autoload -o,生成相应的classmap映射,这样就可以在代码中通过composer自动加载thrift的生成代码了

c. 配置:在config\thrift.php中添加配置,可参考现有的配置。以下是一个例子

d. 在目录app\Services\Thrift(该目录按自己的实际情况选择)下添加一个ThriftService类(该类可以在vendor/darkgel/thrift-manager/examples下找到) ,使用该ThriftService作为所有thrift服务类的基类。

e. 在目录app\Services\Thrift\Services(该目录按自己的实际情况选择)下添加一个具体的Service类(可在vendor/darkgel/thrift-manager/examples找到该例子),该类必须继承自上面的ThriftService类。配置该service类的属性:$instance(必须有,用于实现单例模式,赋值为null即可);$service(必须有,与thrift配置相关,见上面的thrift配置);$multiplexed(可选,若为true表示使用多路协议)。例子如下:

f. 通过静态方法调用上面添加的service类,eg:AdditionService::add(1, 2)。add方法名即thrift远程提供的方法名。Services目录下的目录结构如图:

注意


All versions of thrift-manager with dependencies

PHP Build Version
Package Version
Requires php Version >=7.0
laravel/framework Version >=5.5
packaged/thrift Version ^0.11.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 darkgel/thrift-manager contains the following files

Loading the files please wait ....