phppro/supervision

PHPPRO Supervision

1.2.0 2017-05-02 12:26 UTC

This package is not auto-updated.

Last update: 2020-02-06 16:41:25 UTC


README

This repository contains the PHP Supervision and Symfony 2 Supervision Bundle that allows you to add supervision feature to your application.

Usage

Symfony 2 integration (Supervision Bundle)

This version of the bundle requires Symfony 2.7+.

Installation

Installation is a quick 3 step process:

  1. Download phppro/supervision using composer
  2. Enable the Bundle
  3. Configure the SupervisionBundle

Step 1: Download phppro/supervision using composer

Add phppro/supervision dependency to your composer.json :

# composer.json
{
    "require": {
        "phppro/supervision": "1.*"
    },

    ...
}

Then update:

$ php composer.phar update phppro/supervision

Composer will install the bundle to your project's vendor/phppro/supervision directory and additional required packages.

Step 2: Enable the bundle

Enable the bundle in the kernel:

<?php
// app/AppKernel.php

public function registerBundles()
{
    $bundles = array(
        // ...
        new Phppro\Supervision\SupervisionBundle(),
    );
}

Step 3: Configure the routing

# app/routing.yml
supervision:
    resource: "@SupervisionBundle/Controller/"
    type:     annotation

Step 4: Configure the SupervisionBundle

# app/config/config.yml
supervision:
    providers:
        - {name: "symfony", provider: "provider_symfony"}

Next Steps

Contact the phppro dev team for further information.