albertofem / sitestatuschecker-bundle
Installs: 90
Dependents: 0
Suggesters: 0
Security: 0
Stars: 3
Watchers: 0
Forks: 1
Open Issues: 0
pkg:composer/albertofem/sitestatuschecker-bundle
Requires
- php: >=5.3.3
- doctrine/doctrine-bundle: ~1.2
- doctrine/orm: ~2.2,>=2.2.3
- liip/monitor-bundle: @dev
- symfony/symfony: ~2.5
Requires (Dev)
- ext-pdo_sqlite: *
- phpunit/phpunit: ~4.1
This package is not auto-updated.
Last update: 2025-10-25 21:12:50 UTC
README
Symfony2 bundle to perform site status, relying on LiipMonitorBundle. It's specifically made for ping services, like the one from New Relic.
Installation
Require it in composer:
composer require albertofem/sitestatuschecker-bundle dev-master
Install it:
composer update albertofem/sitestatuschecker-bundle
Add it to your bundles:
$bundles = array( ..., new \Liip\MonitorBundle\LiipMonitorBundle(), new \AFM\Bundle\SiteStatusCheckerBundle\SiteStatusCheckerBundle() );
If you want to run the tests:
./vendor/bin/phpunit
Usage
Configure LiipMonitorBundle
Please referer to the bundle documentation: https://github.com/liip/LiipMonitorBundle
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:
403: invalid token. Body content:KO200: all checks performed correctly. Body content:OK500: some checks are failling. Body content:KO