eleme/thrift-silex

thrift service provider for silex

Installs: 2 884

Dependents: 0

Suggesters: 0

Security: 0

Stars: 0

Watchers: 0

Forks: 0

Open Issues: 0

pkg:composer/eleme/thrift-silex

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

This package is not auto-updated.

Last update: 2025-10-07 06:43:07 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();