Skip to content

Repository files navigation

mainlycode/health-bundle

CI

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:

  • PHP 8.2, 8.3, 8.4 and 8.5
  • Symfony 6.4 LTS, 7.4 LTS and 8.1

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

About

Symfony bundle for adding a /health endpoint to your application

Resources

Stars

0 stars

Watchers

1 watching

Forks

Releases

Packages

Used by

Contributors

Languages