vnphp / push-notification-bundle
Symfony2 Push notification support.
v0.3
2017-08-20 12:15 UTC
Requires
- kriswallsmith/buzz: ^0.15.0
Requires (Dev)
- phpunit/phpunit: ^5.1
- symfony/dependency-injection: ^3.1
This package is auto-updated.
Last update: 2024-10-27 16:04:22 UTC
README
Installation
composer require vnphp/push-notification-bundle
Usage
<?php
use Vnphp\PushNotificationBundle\Model\Message;
$message = new Message();
$message->setTitle('title')
->setBody('body')
->setIcon('icon')
->setClickAction('click action');
$this->get('vnphp_push_notification.notifier')->notifyUsers($message, 'token');