jrschumacher / silex-provider-thunderpush
dev-master
2014-04-10 20:19 UTC
Requires
- silex/silex: >=1.0
- thunderpush/php-thunderclient: dev-master
Requires (Dev)
- phpunit/phpunit: ~3.5
This package is not auto-updated.
Last update: 2024-09-14 14:40:04 UTC
README
为silex微框架提供的Thunderpush服务。请查看:https://github.com/thunderpush/php-thunderclient
示例
<?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();
使用Composer安装
{ require: { "jrschumacher/silex-provider-thunderpush": "dev-master" } }