Download the PHP package alahaxe/healthcheck-bundle without Composer

On this page you can find all versions of the php package alahaxe/healthcheck-bundle. It is possible to download/install these versions without Composer. Possible dependencies are resolved automatically.

FAQ

After the download, you have to make one include require_once('vendor/autoload.php');. After that you have to import the classes with use statements.

Example:
If you use only one package a project is not needed. But if you use more then one package, without a project it is not possible to import the classes with use statements.

In general, it is recommended to use always a project to download your libraries. In an application normally there is more than one library needed.
Some PHP packages are not free to download and because of that hosted in private repositories. In this case some credentials are needed to access such packages. Please use the auth.json textarea to insert credentials, if a package is coming from a private repository. You can look here for more information.

  • Some hosting areas are not accessible by a terminal or SSH. Then it is not possible to use Composer.
  • To use Composer is sometimes complicated. Especially for beginners.
  • Composer needs much resources. Sometimes they are not available on a simple webspace.
  • If you are using private repositories you don't need to share your credentials. You can set up everything on our site and then you provide a simple download link to your team member.
  • Simplify your Composer build process. Use our own command line tool to download the vendor folder as binary. This makes your build process faster and you don't need to expose your credentials for private repositories.
Please rate this library. Is it a good library?

Informations about the package healthcheck-bundle

HealthCheck Bundle

DeepSource Packagist PHP Version Support Packagist Version GitHub Workflow Status (branch)

This bundle allows to easily expose a healthcheck on a Symfony application. You can add as many checks you want and create your own checks.

Installation

Quickstart

1- Router

Register package routes in your application

Default route for healthcheck is /_healthcheck

2- Firewall

Allow any requests to call the healthcheck endpoint.

Use custom route

Do not load resource @HealthCheckBundle/Resources/config/router.yaml file in your router but add:

Adapte firewall pattern:

Use available checks

Name Package Current version
Doctrine check alahaxe/healthcheck-doctrine Packagist Version
System check alahaxe/healthcheck-system Packagist Version
Redis check alahaxe/healthcheck-redis Packagist Version
Curl check alahaxe/healthcheck-curl Packagist Version

Add a custom check

Create a custom class that implements CheckInterface:

The output on /_healthcheck will be:

`

Register the service with the tag lahaxearnaud.healthcheck.check :

Or if you have many checks you can add the tag on a folder:

Http verbosity

Verbosity configuration allows to redure informations exposed publicly. If your healthcheck is protected (firewall, network rules...) you should use a full configuration. Default verbosity is minimal

Full configuration

In your symfony configs:

Example of http response:

Minimal configuration:

In your symfony configs:

Example of http response:

Events / Listeners

Name When
Alahaxe\HealthCheckBundle\Event\HealthCheckAllEvent::class When all checks are tested
Alahaxe\HealthCheckBundle\Event\HealthCheckEvent::class When a check is tested

By default a log is written on each Alahaxe\HealthCheckBundle\Event\HealthCheckAllEvent::class, take a look at Alahaxe\HealthCheckBundle\Event\Subscriber\LoggerSubscriber for an example.

License

This bundle is under the MIT license. See the complete license in the bundle.


All versions of healthcheck-bundle with dependencies

PHP Build Version
Package Version
Requires php Version ^8.0
ext-json Version *
psr/log Version ^1||^2||^3
symfony/config Version ^6.0 || ^7.0
symfony/console Version ^6.0 || ^7.0
symfony/event-dispatcher-contracts Version ^2 || ^3
symfony/dependency-injection Version ^6.0 || ^7.0
symfony/http-kernel Version ^6.0 || ^7.0
symfony/framework-bundle Version ^6.0 || ^7.0
symfony/http-foundation Version ^6.0 || ^7.0
alahaxe/healthcheck-contracts Version ^1.1
Composer command for our command line client (download client) This client runs in each environment. You don't need a specific PHP version etc. The first 20 API calls are free. Standard composer command

The package alahaxe/healthcheck-bundle contains the following files

Loading the files please wait ....