Installation
Data Health installs like a conventional Laravel package and is discovered automatically by Laravel after Composer finishes.
Contents
Section titled “Contents”- Requirements
- Install the core package
- Publish the package resources
- Default configuration
- Coding agents and Laravel Boost
- Choose an interface
Requirements
Section titled “Requirements”Before installing Data Health, make sure your application uses:
- PHP 8.3 or newer; and
- Laravel 12 or 13.
The optional Filament interface additionally requires Filament 5.
Install the core package
Section titled “Install the core package”Install Data Health with Composer:
composer require data-health/data-health:^0.1.1Laravel package discovery registers the Data Health service provider and facade, so you do not need to add either one to your application manually.
Publish the package resources
Section titled “Publish the package resources”Publish the configuration file and migrations together with the data-health tag:
php artisan vendor:publish --tag="data-health"If you prefer to publish them separately, use their individual tags:
php artisan vendor:publish --tag="data-health-config"php artisan vendor:publish --tag="data-health-migrations"Publishing the configuration file is optional because Data Health loads its defaults from the package. Publish it when you need to change discovery directories, scheduled detection, or automatic model cleanup.
The migrations create the tables used for finding records and detection cursors. Run them after publishing:
php artisan migrateDefault configuration
Section titled “Default configuration”The published config/data-health.php starts with these behaviors:
- finding classes are discovered recursively below
app/DataHealthusing theApp\DataHealthnamespace; - scheduled detections are enabled; and
- automatic cleanup for every deleted Eloquent model is disabled.
The discovery directory does not need to exist before installation. You can create it when you define your first finding in the Quick Start.
See Configuration for every available option and environment variable.
Coding agents and Laravel Boost
Section titled “Coding agents and Laravel Boost”The package bundles concise Boost guidelines and a data-health-development skill.
With Laravel Boost installed, run php artisan boost:install and select the package
guidelines and skill for your coding agent. Use php artisan boost:update to refresh
installed guidance after package updates, checking that newly discovered resources
are selected when prompted.
Before asking an agent to generate findings or scan application code, have it read
the skill. Without Boost, the installed file is
vendor/data-health/data-health/resources/boost/skills/data-health-development/SKILL.md.
The skill source
is also available online. Installing the Composer package alone does not ensure an
agent has loaded its guidance.
Start with Establish the application rule to distinguish supported invariants from speculative checks and legitimate exceptions.
Choose an interface
Section titled “Choose an interface”The core package does not require a user interface. You can detect, inspect, verify, and resolve findings from application code, queued jobs, console commands, HTTP endpoints, or an interface built specifically for your application.
For a ready-made management interface, install the optional Filament package:
composer require data-health/data-health-filament:^0.1It adds finding resources, actions, statistics, manual detection, and standalone Livewire components without changing the finding classes used by the core package.
Continue with Filament Installation to register it with a panel, or skip it and proceed directly to the Quick Start.