Download the PHP package govigilant/drupal-healthchecks without Composer

On this page you can find all versions of the php package govigilant/drupal-healthchecks. 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 drupal-healthchecks

Vigilant Drupal Healthchecks

Tests Analysis Total downloads

A package that adds healthchecks to any Drupal application and integrates seamlessly with Vigilant.

Installation

Install the module with Composer:

Enable the module via the Drupal UI or with Drush:

Configure the bearer token and thresholds at Configuration → System → Vigilant Healthchecks once the module is enabled.

Usage

Accessing the health endpoint

After configuring a bearer token, the health payload is available at:

Example curl request:

Available Checks

Check Description
DatabaseCheck Executes a lightweight query to confirm the default database connection responds.
CacheCheck Writes and reads a payload using the cache backend to ensure it can store, retrieve, and delete items.
QueueCheck Pushes a probe job through Drupal's queue backend to verify processing behavior and report backlog snapshots.
CronCheck Ensures Drupal cron has executed within the configurable threshold stored in vigilant_healthchecks.settings.
SecurityUpdatesCheck Uses the Update Manager data to flag projects with outstanding security advisories.

Available Metrics

Metric Description
CacheEfficiencyMetric Aggregates hit/miss ratios for the cache bins listed in vigilant_healthchecks.settings.
ErrorLogMetric Counts watchdog error entries recorded within the configurable rolling window.

Extending

You can register your own health checks or metrics by tagging services with vigilant_healthchecks.check or vigilant_healthchecks.metric.

  1. Create a class that extends Vigilant\HealthChecksBase\Checks\Check (or Metric) and implement run()/measure() plus available().
  2. Define the service in MODULE.services.yml and add the appropriate tag.
  3. Inject any dependencies as usual; the HealthCheckRegistry automatically discovers tagged services.

Development Environment

A ready-to-use Docker Compose setup lives in devenv/. Start the stack: docker compose -f devenv/docker-compose.yml up --build.

This provisions Drupal 11 with MariaDB, installs this module automatically, and exposes the site on http://localhost:8000. The default admin credentials are admin / secret and the bearer token is preset to testing.

Stop everything with docker compose -f devenv/docker-compose.yml down -v when you're done.

Quality

Run the quality checks locally:

Security Vulnerabilities

Please review our security policy on how to report security vulnerabilities.

Credits

License

The MIT License (MIT). Please see License File for more information.


All versions of drupal-healthchecks with dependencies

PHP Build Version
Package Version
Requires php Version ^8.2
drupal/core Version ^10.2 || ^11.0
govigilant/vigilant-healthchecks-base 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 govigilant/drupal-healthchecks contains the following files

Loading the files please wait ...