gonzalo123 / pushsilex
pushsilext
Installs: 6
Dependents: 0
Suggesters: 0
Security: 0
Stars: 6
Watchers: 2
Forks: 1
Open Issues: 0
pkg:composer/gonzalo123/pushsilex
Requires
- silex/silex: 1.3.x-dev
This package is not auto-updated.
Last update: 2025-09-28 00:23:52 UTC
README
Pushbullet integration with Silex
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();