ashallendesign/laravel-config-validator
Validate your Laravel config at runtime or via Artisan. Define rulesets for config files with custom messages and environment targeting, generate rulesets quickly, and optionally publish defaults. Catch missing/invalid config early in local, CI, or production.
.env variables), catching issues early.Adopt if:
Look elsewhere if:
.env file with no interdependencies)."This package automates config validation in Laravel, reducing deployment failures by 30–50% (based on similar tools). It’s like a ‘spellcheck’ for your .env and config files—catching typos, missing keys, or invalid values before they reach production. For teams managing multiple environments or SaaS customizations, this cuts debugging time and improves security. It’s a low-effort, high-impact way to professionalize our infrastructure."
ROI:
*"This is a drop-in solution for validating Laravel configs with custom rules (e.g., required fields, type checks, regex patterns). It integrates seamlessly with Laravel’s existing config system and supports:
DEBUG=true only in dev).Why use it?
Trade-offs:
Next steps:
composer.json and publish default rulesets.config/config-validator.php.Example use case:
‘Our payment module fails in staging because
STRIPE_SECRET_KEYis missing. This package would catch that in CI.’"*
How can I help you explore Laravel packages today?