Download the PHP package vendic/magento2-oh-dear-checks without Composer

On this page you can find all versions of the php package vendic/magento2-oh-dear-checks. 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 magento2-oh-dear-checks

Oh Dear module for Magento 2

This module adds Application health monitoring using Oh Dear to Magento 2. It allows you to easily write your own custom checks. Additionally, it ships with a number of checks out of the box.

Installation

Configuration

Some checks have an optional configuration. You can configure these checks in the env.php. Example:

Disabling Checks

To disable any check, add an entry to your env.php with the check class name and set enabled to false:

Checks

TODO

Store fronts

Oh Dear monitors one domain per site, but a single Magento instance often serves many store views on different domains. The store_fronts check reports on the availability of all those child store domains:

Individual stores can be excluded from the check by listing their store codes in the excluded_stores check config in env.php, and the whole check can be disabled like any other:

Disabling the check also stops both crons from making any requests.

Write your own checks

  1. Create a new class that implements Vendic\OhDear\Interfaces\CheckInterface, place it in 'Checks'. This class will contain the main logic of your check.
  2. Add your new class to the 'checks' argument of Vendic\OhDear\Api\CheckListInterface

  3. Preferabbly add a test for your check. See Vendic\OhDear\Test\Integration\Checks\ for examples.
  4. Test your output on: https://magento2.test/oh-dear-health-application-check-results. Your GET request should include the header oh-dear-health-check-secret. The header value should match the Magento config value of ohdear/health_check/secret. If you don't have this header, you will get a 'No health secret provided' response.
  5. Open a PR with your new check!

All versions of magento2-oh-dear-checks with dependencies

PHP Build Version
Package Version
Requires php Version ~8.1.0|~8.2.0|~8.3.0|~8.4.0|~8.5.0
magento/framework Version 103.0.*
magento/magento-composer-installer Version *
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 vendic/magento2-oh-dear-checks contains the following files

Loading the files please wait ...