mainlycode / health-bundle
Symfony bundle for adding a /health endpoint to your application
Package info
github.com/mainlycode/health-bundle
Type:symfony-bundle
pkg:composer/mainlycode/health-bundle
0.5.0
2026-08-21 12:24 UTC
Requires
- php: ^8.2
- symfony/http-foundation: ^6.4||^7.4||^8.1
Requires (Dev)
- phpstan/extension-installer: ^1.4
- phpstan/phpstan: ^2.2
- phpstan/phpstan-phpunit: ^2.0
- phpunit/phpunit: ^11.5||^12.5||^13.0
- symfony/browser-kit: ^6.4||^7.4||^8.1
- symfony/framework-bundle: ^6.4.13||^7.4||^8.1
- symfony/runtime: ^6.4||^7.4||^8.1
- symfony/yaml: ^6.4||^7.4||^8.1
README
Symfony bundle for adding a /health endpoint to your application
Requirements
This bundle supports the PHP and Symfony versions that are officially supported by their maintainers:
Installation
Install the bundle with Composer:
composer require mainlycode/health-bundle
Register the bundle in your application (config/bundles.php):
return [ /** your other bundles */ MainlyCode\HealthBundle\HealthBundle::class => ['all' => true], ];
To add the route to your application, add the following to your config/routing.yaml:
health: resource: '@HealthBundle/config/routing.yaml'
or if you are importing routes in PHP:
// config/routes.php use Symfony\Component\Routing\Loader\Configurator\RoutingConfigurator; return function (RoutingConfigurator $routes) { $routes->import('@HealthBundle/config/routing.yaml'); };
Contributing
make dependencies # install the Composer dependencies
make test # run the test suite
make coverage # report the test coverage
make phpstan # run static analysis
make qa # run all quality assurance checks