Ecosyste.ms: Awesome
An open API service indexing awesome lists of open source software.
https://github.com/borsaco/pushenotificationbundle
PHP pushe.co API wrapper for Symfony applications
https://github.com/borsaco/pushenotificationbundle
Last synced: about 1 month ago
JSON representation
PHP pushe.co API wrapper for Symfony applications
- Host: GitHub
- URL: https://github.com/borsaco/pushenotificationbundle
- Owner: borsaco
- License: bsd-3-clause
- Created: 2019-07-09T07:08:57.000Z (over 5 years ago)
- Default Branch: master
- Last Pushed: 2019-07-15T07:36:03.000Z (over 5 years ago)
- Last Synced: 2024-10-13T06:22:12.461Z (about 1 month ago)
- Language: PHP
- Size: 4.88 KB
- Stars: 0
- Watchers: 2
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
- License: LICENSE
Awesome Lists containing this project
README
# PusheNotificationBundle
PHP pushe.co API wrapper for Symfony applications## Install
Via Composer
``` bash
composer require borsaco/pushe-notification-bundle
```## Initialise
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:
```php
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:```yml
pushe_notification:
token: "7fb1***********29b464c"
```## Usage
Wherever you have access to the service container :
```php
$pushNotification = $this->container->get('pushe_notification');
$pushNotification->send();
```## More
You can find more help in https://github.com/Borsaco/PusheNotification