Download the PHP package stratum-tech/module-dev-healthcheck without Composer

On this page you can find all versions of the php package stratum-tech/module-dev-healthcheck. 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 module-dev-healthcheck

Stratum DevHealthCheck

A Magento 2 CLI module that runs a colour-coded, sectioned health check of your environment and deployment configuration, and scores overall system health on a 0–100 scale.

Requirements

Installation

Via Composer:

Manual:

Usage

Exit codes

Code Meaning
0 All checks passed (OK / INFO / SKIP)
1 One or more FAIL results
2 One or more WARN results (only with --fail-on-warn)

Scoring

Every check contributes to a weighted 0–100 health score. Sections have different weights based on their impact on production stability and security:

Section Weight
Security 20
Database 15
Cache 10
Cron 10
Deploy & Mode 8
PHP 8
Environment 7
Filesystem 7
Indexers 5
Search 5
Infrastructure 5
Performance 4
Logging 3
Config Integrity 3
Extensions 3
Storage 2

Points are split equally among checks within each section. SKIP checks are excluded entirely and do not affect the score. WARN results earn 50% of their available points; FAIL earns 0%.

Grade Score
A 90–100
B 75–89
C 60–74
D 45–59
F 0–44

Checks

Section Check What it verifies
PHP PHP Version >= 8.3 OK, 8.2 WARN
PHP PHP Extensions intl, soap, bcmath, gd/imagick, pdo_mysql, mbstring, openssl, zip, ctype, curl
PHP OPcache Enabled, memory >= 128MB, validate_timestamps off in production
Deploy & Mode Deploy Mode production / developer / default
Deploy & Mode Maintenance Mode On or off
Deploy & Mode Static Assets pub/static populated; skipped in developer mode
Deploy & Mode Generated Code generated/code non-empty; skipped in developer mode
Filesystem Writable Directories var/, pub/media/, pub/static/, generated/
Filesystem env.php Permissions Warns if world-readable (> 0644)
Filesystem Disk Space WARN < 10% free, FAIL < 2%
Database DB Connection SELECT 1
Database DB Version Warns on MySQL < 8.0
Database Pending Upgrades Compares setup_module table against installed module versions
Cache Cache Types Lists any disabled cache types
Cache Cache Backend Reports backend; warns if not Redis
Cache Redis Connectivity Socket connect with 2s timeout; skipped if not configured
Indexers Indexer Status Reports any invalid indexers
Indexers Indexer Mode Warns on realtime indexers in production
Environment Crypt Key crypt/key present in env.php
Environment Base URL Warns on localhost/127.0.0.1 in production
Environment Admin URL Warns on well-known default paths (admin, backend, etc.)
Environment Cookie Security HttpOnly and Secure flags in production
Environment HTTPS Redirect use_in_frontend and use_in_adminhtml in production
Cron Cron Last Run FAIL if no successful job in last 15 minutes
Cron Cron Error Jobs Counts error status jobs in last 60 minutes
Cron Cron Backlog WARN >= 10 stale pending jobs, FAIL >= 50
Cron Stuck Cron Jobs FAIL if any job stuck in "running" state for > 30 minutes
Cron Duplicate Cron Entries WARN if multiple pending entries for same job at same time
Search Search Engine Reports configured engine; warns on deprecated MySQL search
Search Search Connectivity HTTP connect to engine host:port with 2s timeout
Security .git in Webroot FAIL if .git/ directory found inside pub/
Security PHP Info Files FAIL if info.php or phpinfo.php found in pub/
Security Two-Factor Auth FAIL if Magento_TwoFactorAuth disabled; WARN if no provider configured
Security Webroot Location Verifies pub/index.php exists and sensitive files are outside pub/; skipped from CLI
Security Log Dir Exposure Verifies var/log/ and var/report/ are outside pub/ and protected by .htaccess
Performance Asset Minification JS/CSS minification and merging enabled in production
Performance Flat Catalog Flat product and category tables enabled
Performance Module Count WARN >= 300 modules, FAIL >= 400
Performance MySQL Query Cache Warns if query_cache enabled (harmful under load)
Performance Full Page Cache Varnish OK, built-in WARN in production, unconfigured FAIL
Logging Exception Log WARN if recently modified or > 10MB; FAIL if > 50MB
Logging Error Reports WARN >= 10 files in var/report/, FAIL >= 100
Logging Debug Logging Warns if dev/debug/debug_logging enabled in production
Storage Media Size WARN >= 20GB, FAIL >= 50GB
Storage Var Directory Size WARN >= 5GB, FAIL >= 20GB
Config Integrity config.php Sync Detects modules registered but absent from config.php; run app:config:dump to fix
Config Integrity Store Code in URL Warns if web/url/use_store enabled (breaks Varnish/CDN)
Extensions Class Rewrites Counts <preference> entries across all di.xml; WARN >= 20, FAIL >= 50
Extensions Duplicate Modules FAIL if same module name exists in both app/code/ and vendor/
Infrastructure RequireJS Config FAIL if pub/static/_requirejs missing in production
Infrastructure Session Backend WARN if using file-based sessions

Adding a custom check

  1. Create a class implementing Stratum\DevHealthCheck\Model\Check\CheckInterface
  2. Register it in your module's di.xml:

License

MIT — see LICENSE


All versions of module-dev-healthcheck with dependencies

PHP Build Version
Package Version
Requires php Version >=8.2
magento/framework Version >=107.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 stratum-tech/module-dev-healthcheck contains the following files

Loading the files please wait ...