pedrotroller/healthcheck

Check if your application is still working

v1.0.2 2020-01-29 16:39 UTC

This package is auto-updated.

Last update: 2020-06-29 17:56:02 UTC


README

# Healthcheck

## Installation

`composer require pedrotroller/healthcheck`

## Symfony integration

### Configuration (coming from Symfony Flex) 

```yaml
# config/packages/healthcheck.yaml
healthcheck:
	detailed: '%kernel.debug%'
```

```yaml
# config/routing/healthcheck.yaml
healthcheck:
  resource: '@HealthcheckBundle/Resources/config/routing.yaml'
  prefix: /healthcheck
```

## Usage

### HTTP

`GET /healthcheck` will return an empty 200 response is the service is available, a 503 else.
`OPTIONS /healthcheck` will return an empty 200 response if the helthchecking route is available.

### Console

`bin/console healthcheck`