dev-master
9999999-dev https://github.com/Micronax/prowl-bundleShare the xenji/prowlPHP lib in a symfony service container
MIT
The Requires
- php >=5.3.2
- xenji/prowlphp >=1.0.2
by Fabian Golle
symfony2 prowl prowlphp
Share the xenji/prowlPHP lib in a symfony service container
This bundle provides a simple integration of the "Prowl Library" from Mario Mueller into Symfony2., (*1)
<?php $prowl = $this->container->get('prowl');
The bundle provides a new prowl
service., (*2)
You need an prowlapp.com API-Key to use this software!, (*3)
Installing the bundle via packagist is the quickest and simplest method of installing the bundle. Here are the steps:, (*4)
$ php composer.phar require "micronax/prowl-bundle":"dev-master"
<?php // app/AppKernel.php public function registerBundles() { $bundles = array( // ... new Micronax\ProwlBundle\MicronaxProwlBundle(), // ... ); }
Just add the following to your config.yml, (*5)
micronax_prowl: debug: false provider_key: <your provider key> api_key: <your api key> app_name: <Applicatio Name>
Usage is as simple as possible. Just call the following line of code everywhere in your application where you want to send prowl messages:, (*6)
$this->get('prowl')->notify('MESSAGE SUBJECT', 'MESSSAGE TEXT', 2); // where "3" represents an integer priority in between -2 (very low) and 2 (emergency)
Share the xenji/prowlPHP lib in a symfony service container
MIT
symfony2 prowl prowlphp