2017 © Pedro Peláez
 

library pushsilex

pushsilext

image

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

The README.md

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();

The Versions

28/02 2015

dev-master

9999999-dev

pushsilext

  Sources   Download

MIT

The Requires

 

silex pushbullet