eleme/thrift-silex

thrift service provider for silex

v0.1.2 2014-09-28 09:02 UTC

This package is not auto-updated.

Last update: 2024-11-05 02:21:23 UTC


README

Build Status Scrutinizer Code Quality Code Coverage Stable Status

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();