PHP pushe.co API wrapper
Via Composer
composer require borsaco/pushe-notification
first initialise with this code and token you get from http://poushe.co
<?php
$token = '7fb1***********29b464c';
$pushNotification = new \Borsaco\PusheNotification\PushNotification($token);
?>
For set add application:
<?php
$pushNotification->addApplication('com.example.app');
?>
For set Notification part:
<?php
$notification = new \Borsaco\PusheNotification\Entities\Notification();
$notification->setTitle('title');
$notification->setContent('test content');
$pushNotification->setNotification($notification);
?>
Finaly you can send notification with send()
method:
<?php
$pushNotification->send();
?>
You can find more information in: http://panel.pushe.co/documentation