Download the PHP package devskio/statamic-ohdear-addon without Composer

On this page you can find all versions of the php package devskio/statamic-ohdear-addon. 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 statamic-ohdear-addon

Statamic Oh Dear Health Check

Packagist Version Total Downloads Statamic

A Statamic addon that exposes an Oh Dear-compatible health-check endpoint and provides a control-panel configuration screen.

It is built as a Statamic-specific layer on top of devskio/laravel-ohdear-health-check, which provides the core HTTP endpoint, shared-secret middleware, and base checks (database, disk space, error log).

Related project: TYPO3 Oh Dear Health Check — the same concept for TYPO3 CMS.


Features


Requirements

Dependency Version
PHP ^8.2
Statamic ^6.0
Laravel ^12.0 || ^13.0

Installation

The devskio/laravel-ohdear-health-check package is installed automatically as a dependency.

Publish config (optional)


Configuration

All settings can be managed in three ways (listed by priority, highest first):

  1. Statamic Control Panel – open Tools → OhDear Health Check. Changes are written directly to the published config files and take effect immediately — no .env editing or deployment required.
  2. Environment variables – add any of the keys below to your .env file.
  3. Config file – publish config/statamic-ohdear-health-check.php and edit it directly (useful for array values like allowed_files).

⚠️ Values saved through the CP will override both the config file defaults and env variables for the settings it manages. If you want env variables to always take precedence, rely solely on .env and leave the CP form untouched.


Environment variables

Config file

Publish the config for values that cannot be set via env (e.g. allowed_files, which is an array):

Then edit config/statamic-ohdear-health-check.php:

Control panel

Open Tools → OhDear Health Check in the Statamic CP to configure all options through a UI. Settings saved here are written to the published config files and take effect immediately.

Dashboard widget

Add the widget to config/statamic/cp.php:

Only users with the View OhDear health check widget permission see it — for everyone else it renders nothing and Statamic drops it from the dashboard. It is a permission of its own, so configuring the addon does not imply seeing the widget (and vice versa). Grant it per role under Users → Permissions. To skip running the checks entirely for users who can't see it, gate the widget in cp.php as well:

The widget needs its stylesheet published once:

It shows the four application-health cards (disk space, error log, storage size, forgotten files) from the local checks. Add OHDEAR_API_TOKEN and OHDEAR_MONITOR_ID — or fill them in under Tools → OhDear Health Check — and the monitor strip above them is populated from the Oh Dear API instead of the local checks: uptime, performance, broken links, mixed content, certificate health, DNS, domain expiry, scheduled tasks and anything else enabled on the monitor. Results are cached for the widget's cache seconds (default 60), and the widget falls back to local checks if the API is unreachable.

Permissions

Permission Grants
configure ohdear health check Access to Tools → OhDear Health Check
view ohdear health check widget The dashboard widget

The two are independent: grant the widget to editors without letting them change thresholds, or give an admin the settings screen without putting the widget on their dashboard. Super users have both. Neither is granted by default, so add them to the roles that need them.

Forgotten Files check

The check scans public/ and warns about any entry that is not in the built-in allowlist:

Add project-specific entries via allowed_files in the config (supports fnmatch glob patterns).

Statamic Version check

Fetches the latest Statamic release tag from GitHub (api.github.com) and compares it to the installed version. The result is cached for 6 hours.


Authors


License

The MIT License. See LICENSE for details.


All versions of statamic-ohdear-addon with dependencies

PHP Build Version
Package Version
Requires php Version ^8.2
devskio/laravel-ohdear-health-check Version ^1.0
guzzlehttp/guzzle Version ^7.0
statamic/cms Version ^6.0
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 devskio/statamic-ohdear-addon contains the following files

Loading the files please wait ...