library pushsilex
pushsilext
gonzalo123/pushsilex
pushsilext
- Saturday, February 28, 2015
- by gonzalo123
- Repository
- 2 Watchers
- 5 Stars
- 0 Installations
- PHP
- 0 Dependents
- 0 Suggesters
- 1 Forks
- 0 Open issues
- 1 Versions
- 0 % Grown
pushsilex
Pushbullet integration with Silex, (*1)
https://docs.pushbullet.com/, (*2)
Usage
use Silex\Application;
use PushSilex\Silex\Provider\PushbulletServiceProvider;
$app = new Application(['debug' => true]);
$myToken = include(__DIR__ . '/../conf/token.php');
$app->register(new PushbulletServiceProvider($myToken));
$app->get("/", function () {
return "Usage: GET /note/{title}/{body}";
});
$app->get("/note/{title}/{body}", function (Application $app, $title, $body) {
return $app->json($app['pushbullet.note']($title, $body));
});
$app->run();
dev-master
9999999-dev
pushsilext
Sources
Download
MIT
The Requires
silex
pushbullet