Download the PHP package codevioso/laravel-doctor without Composer
On this page you can find all versions of the php package codevioso/laravel-doctor. It is possible to download/install these versions without Composer. Possible dependencies are resolved automatically.
Download codevioso/laravel-doctor
More information about codevioso/laravel-doctor
Files in codevioso/laravel-doctor
Package laravel-doctor
Short Description Lightweight diagnostic tool for Laravel apps
License MIT
Informations about the package laravel-doctor
Laravel Doctor
Instantly diagnose configuration, performance and production safety issues in your Laravel application.
📄 View the landing page →
Introduction
Laravel Doctor is a CLI tool that scans your Laravel application for common configuration mistakes, performance anti-patterns, and production safety issues. It runs a set of checks against your app config, environment, and filesystem and reports findings with actionable messages.
Production misconfigurations—debug mode enabled, file-based cache in production, sync queue driver, missing storage symlink—are easy to overlook but costly in production. Laravel Doctor surfaces these issues before they impact users or performance. It verifies cache state, driver choices, file permissions, PHP extensions, and more.
Run it locally. No external services, no API calls, no network dependencies.
Installation
Optionally publish the config file:
Usage
Run only specific checks:
Skip checks:
Demo report (sample output, no real checks):
Example Output
Included Checks
- APP_DEBUG in production
- APP_ENV mismatch
- Config cache
- Route cache
- View cache
- Queue sync driver in production
- Queue worker detection
- Cache driver in production
- Session driver in production
- Storage symlink
- File permissions
- Composer optimized autoload
- Required PHP extensions
- Log channel configuration
Configuration
The config/doctor.php file controls which checks run and how. After publishing, you can:
- Enable or disable the package: Set
enabledtotrueorfalse. - Enable or disable individual checks: Use the
checksarray. Keys are check class names, values aretrueorfalse. - High-traffic flag: Set
environment.high_traffictotrueto enable additional logging-related checks. - Custom checks: Add class names to the
custom_checksarray to run your own checks (they are enabled by default).
Extending (Custom Checks)
Register your own checks by implementing Codevioso\LaravelDoctor\Contracts\CheckInterface and registering them with the Doctor service:
Custom checks must implement CheckInterface, which defines key(), title(), and run(DoctorContext $context) returning a CheckResult.
Contributing
Contributions are welcome. Please submit a pull request on GitHub. Run tests before submitting (composer test) and follow the existing package architecture for checks and configuration.
Security
If you discover a security vulnerability, please report it privately via GitHub Security Advisories or contact the maintainers. Do not open a public issue.
License
The MIT License (MIT). Please see LICENSE for more information.
All versions of laravel-doctor with dependencies
illuminate/support Version ^10.0|^11.0
illuminate/console Version ^10.0|^11.0
symfony/console Version ^6.0|^7.0