2017 © Pedro Peláez
 

symfony-bundle prowl-bundle

Share the xenji/prowlPHP lib in a symfony service container

image

micronax/prowl-bundle

Share the xenji/prowlPHP lib in a symfony service container

  • Tuesday, September 3, 2013
  • by Micronax
  • Repository
  • 3 Watchers
  • 8 Stars
  • 1,094 Installations
  • PHP
  • 0 Dependents
  • 0 Suggesters
  • 0 Forks
  • 0 Open issues
  • 1 Versions
  • 0 % Grown

The README.md

MicronaxProwlBundle

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)

Installation

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)

Step 1: Composer require

$ php composer.phar require "micronax/prowl-bundle":"dev-master"

Step 2: Enable the bundle in the kernel

<?php
// app/AppKernel.php

public function registerBundles()
{
    $bundles = array(
        // ...
        new Micronax\ProwlBundle\MicronaxProwlBundle(),
        // ...
    );
}

Step 3: Configure your parameters

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

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)

The Versions

03/09 2013

dev-master

9999999-dev https://github.com/Micronax/prowl-bundle

Share the xenji/prowlPHP lib in a symfony service container

  Sources   Download

MIT

The Requires

 

by Fabian Golle

symfony2 prowl prowlphp