jrschumacher/silex-provider-thunderpush

dev-master 2014-04-10 20:19 UTC

This package is not auto-updated.

Last update: 2024-12-21 15:54:56 UTC


README

Thunderpush service provider for silex micro-framework. Check here: https://github.com/thunderpush/php-thunderclient

Example

<?php
use Silex\Application;

$host = 'localhost';
$port = '8080';
$key = 'key';
$secret = 'secret';
$app = new Application();
$app->register(new ThunderpushServiceProvider(), array(
            "thunderpush.host" => $host,
            "thunderpush.port" => $port,
            "thunderpush.key" => $key,
            "thunderpush.secret" => $secret
         ));
$tp = $app['thunderpush'];
$tp->get_user_count();

Install with Composer

{
require: {
             "jrschumacher/silex-provider-thunderpush": "dev-master"
         }
}