Download the PHP package eheuje/pushover-bundle without Composer
On this page you can find all versions of the php package eheuje/pushover-bundle. It is possible to download/install these versions without Composer. Possible dependencies are resolved automatically.
Download eheuje/pushover-bundle
More information about eheuje/pushover-bundle
Files in eheuje/pushover-bundle
Package pushover-bundle
Short Description Provide some tools to use Pushover in a symfony 2 project
License GLP-3.0
Informations about the package pushover-bundle
PushoverBundle
Provide some tools to use Pushover in a symfony 2 project.
What's Pushover ?
Pushover is a simple notification provider for Android, iPhone, iPad, and Desktop.
Installation
- Create an account on Pushover.
- On the Pushover website, create an application to get a specific API key for the application
- Download the mobile app and synchronize it with your account
-
Then add this bundle in your composer.json
- Enable the bundle in your appKernel.php
- Configure the following parameters in your config.yml with your own values (user_key, api_key and user_email are provided by Pushover once you've create your account and the specific application)
Services
To get the service from a controller that says "Hello World" :
Additional information
It's possible to add extra information in your notifications :
- the duration of a task
- the memomy used by the task
However, this feature is not automatic. It works with the StopWatch Component.
Further information about StopWatch
PushoverCommand
Further information about the Console Component
When you create huge commands, it takes a lot of time to execute them. If you don't want to wait behind your computer for the commands to terminate, you can create your command as an inheritance of PushoverCommand.
Then, call the command with the option --with-pushover.
When the command is terminated, you'll be notified if :
- the command is terminated with a with a awaiting exit code ;
- the command is terminated with an Exception.
Todolist
- Do something with the pushover email function
- Do some tests
- Clean the bundle