Download the PHP package lanffy/laravel-thrift-plugin without Composer
On this page you can find all versions of the php package lanffy/laravel-thrift-plugin. 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 laravel-thrift-plugin
thrift server
Laravel Thrift 插件
如何使用
服务端
composer require lanffy/laravel-thrift-plugin
- 在配置
config/app.php->providers
中添加一行:\Lanffy\Thrift\ThriftServiceProvider::class
- 在
app\Http\Kernel
中添加 Middleware\Lanffy\Thrift\Middleware\ThriftServerMiddleware::class
,默认会处理/rpc
上的请求,如果需要更改此规则,请继承此类并覆盖process
方法 - 在配置文件
config/thrift.php
中添加配置:
客户端
composer require lanffy/laravel-thrift-plugin
- 在配置
app.providers
中添加一行:\Lanffy\Thrift\ThriftServiceProvider::class
-
在配置文件
config/thrift.php
中,设置thrift.client
: - 使用:
应用依赖
Inspired by thrift-laravel
All versions of laravel-thrift-plugin with dependencies
PHP Build Version
Package Version
Requires
php Version
>=7.1.2
illuminate/http Version 5.7.*
illuminate/support Version 5.7.*
symfony/http-foundation Version ^4.1
apache/thrift Version ^0.11.0
illuminate/http Version 5.7.*
illuminate/support Version 5.7.*
symfony/http-foundation Version ^4.1
apache/thrift Version ^0.11.0
The package lanffy/laravel-thrift-plugin contains the following files
Loading the files please wait ....