eleme / thrift-silex
thrift service provider for silex
Installs: 2 883
Dependents: 0
Suggesters: 0
Security: 0
Stars: 0
Watchers: 0
Forks: 0
Open Issues: 0
Requires
- php: >=5.3.3
- eleme/thrift-php: ~0.9
Requires (Dev)
- phpunit/phpunit: ~4.0
- silex/silex: ~1.1
This package is not auto-updated.
Last update: 2024-12-17 02:49:02 UTC
README
thrift service provider for silex framework.
Install With Composer:
"require": { "eleme/thrift-silex": "~0.1" }
Example:
use Silex\Application; use Eleme\Thrift\Provider\Silex\ThriftServiceProvider; $app = new Application; $app->register(new ThriftServiceProvider); $app['thrift.options'] = array( 'foo' => array( 'server' => 'foo_host', 'port' => 12345, 'client' => 'FooClient' ), 'bar' => array( 'server' => 'bar_host', 'port' => 12346, 'client' => 'BarClient' ), ); $app['thrift.clients']['foo']->api(); $app['thrift.clients']['bar']->api();