PHP pushe.co API wrapper for Symfony applications
Via Composer
composer require borsaco/pushe-notification-bundle
first initialise with this code and token you get from http://poushe.co
Edit your app/AppKernel.php to register the bundle in the registerBundles()
method as above:
class AppKernel extends Kernel
{
public function registerBundles()
{
$bundles = array(
// ...
// register the bundle here
new Borsaco\PusheNotificationBundle\PusheNotificationBundle()
);
}
}
then you have to config token for send notification you can get token from pushe.co and add configure in your config file:
pushe_notification:
token: "7fb1***********29b464c"
Wherever you have access to the service container :
$pushNotification = $this->container->get('pushe_notification');
$pushNotification->send();
You can find more help in https://github.com/Borsaco/PusheNotification