2017 © Pedro Peláez
 

symfony-bundle pitcher-bundle

Pitcher bundle

image

braune-digital/pitcher-bundle

Pitcher bundle

  • PHP
  • 0 Dependents
  • 0 Suggesters
  • 0 Forks
  • 0 Open issues
  • 6 Versions
  • 17 % Grown

The README.md

BrauneDigitalPitcherBundle

, (*1)

Pitcher App (http://www.pitcher-app.com) is a webservice which allows you to easily send exceptions from your project. In contrast to classical monitoring webservices, Pitcher is able to pitch individual exceptions from projects, where Pitcher is acting like a satellite whith communicates which ground control. Register now at pitcher-app.com and create your project. After receiving the secret, the next step is installing the PHP component (or Bundle in case of using Symfony) and linking the satellite by defining the secret., (*2)

This bundle integrates the Pitcher component (https://github.com/braune-digital/BrauneDigitalPitcher) into the Symfony framework. It allows you to define parameters in your configuration and serves with a simple service for sending notifications to Pitcher., (*3)

Installation

Require the bundle with composer:, (*4)

composer require braune-digital/pitcher-bundle

Now you can add the bundle to AppKernel.php:, (*5)

<?php

use Symfony\Component\HttpKernel\Kernel;
use Symfony\Component\Config\Loader\LoaderInterface;

class AppKernel extends Kernel
{
    public function registerBundles()
    {
        $bundles = array(
            ...
            new BrauneDigital\PitcherBundle\BrauneDigitalPitcherBundle(),
            ...
        );
        ...
        return $bundles;
    }
    ...
}

Configuration

Paste this configuration into your config.yml and add edit your parameters.yml (and parameters.yml.dist in case you are going to deploy your app):, (*6)

imports:
    - { resource: @BrauneDigitalPitcherBundle/Resources/config/config.yml }
parameters:
    ...
    braune_digital_pitcher.secret: SECRET_FROM PITCHER_APP // www.pitcher-app.com
    braune_digital_pitcher.satellite_name: YOU_ARE_FREE_TO_CHOOSE_A_NAME // for example: Projekt1

After that step you are ready to use the pitcher client. For testing your configuration you can use the pitcher:send_message command., (*7)

Using the client service

If the service container is available in your class you are able to use the service and pitch errors to Pitcher App., (*8)

$this->getContainer()->get('pitcher.client')->pitch(Notification::LEVEL_CRITICAL, 'XML API from server B is down');

The Versions

28/06 2018

1.0.x-dev

1.0.9999999.9999999-dev

Pitcher bundle

  Sources   Download

MIT

The Requires

 

by Patrick Rathje
by Henrik Braune

pitcher bundle watch health check notification exeption

28/06 2018

1.0.3

1.0.3.0

Pitcher bundle

  Sources   Download

MIT

The Requires

 

by Patrick Rathje
by Henrik Braune

pitcher bundle watch health check notification exeption

14/06 2018

1.0.2

1.0.2.0

Pitcher bundle

  Sources   Download

MIT

The Requires

 

by Patrick Rathje
by Henrik Braune

pitcher bundle watch health check notification exeption

24/05 2018

1.0.1

1.0.1.0

Pitcher bundle

  Sources   Download

MIT

The Requires

 

by Patrick Rathje
by Henrik Braune

pitcher bundle watch health check notification exeption

02/07 2016

1.0

1.0.0.0

Pitcher bundle

  Sources   Download

MIT

The Requires

 

by Patrick Rathje
by Henrik Braune

pitcher bundle watch health check notification exeption

17/04 2016

dev-master

9999999-dev

Pitcher bundle

  Sources   Download

MIT

The Requires

 

by Patrick Rathje
by Henrik Braune

pitcher bundle watch health check notification exeption