2017 © Pedro Peláez
 

library sitestatuschecker-bundle

image

albertofem/sitestatuschecker-bundle

  • Tuesday, December 2, 2014
  • by albertofem
  • Repository
  • 0 Watchers
  • 3 Stars
  • 85 Installations
  • PHP
  • 0 Dependents
  • 0 Suggesters
  • 1 Forks
  • 0 Open issues
  • 1 Versions
  • 0 % Grown

The README.md

SiteStatusCheckerBundle

build status Scrutinizer Code Quality, (*1)

Symfony2 bundle to perform site status, relying on LiipMonitorBundle. It's specifically made for ping services, like the one from New Relic., (*2)

Installation

Require it in composer:, (*3)

composer require albertofem/sitestatuschecker-bundle dev-master

Install it:, (*4)

composer update albertofem/sitestatuschecker-bundle

Add it to your bundles:, (*5)

$bundles = array(
    ...,
    new \Liip\MonitorBundle\LiipMonitorBundle(),
    new \AFM\Bundle\SiteStatusCheckerBundle\SiteStatusCheckerBundle()
);

If you want to run the tests:, (*6)

./vendor/bin/phpunit

Usage

Configure LiipMonitorBundle

Please referer to the bundle documentation: https://github.com/liip/LiipMonitorBundle, (*7)

Configure it:

site_status_checker:
    token: my_secure_token

Register the controller in your routes:

status_checker:
    resource: "@SiteStatusCheckerBundle/Resources/config/routing.yml"
    prefix: /status

This will create a route under your prefix: /status/check/{token} which will return appropiate response codes:, (*8)

  • 403: invalid token. Body content: KO
  • 200: all checks performed correctly. Body content: OK
  • 500: some checks are failling. Body content: KO

The Versions

02/12 2014

dev-master

9999999-dev

  Sources   Download

MIT

The Requires

 

The Development Requires

bundle symfony status newrelic checker