Manage, validate and keep your environment variables synchronized.
Never lose track of your .env files again.
Common headaches when managing environment variables
.env and .env.example files constantly drift apart, causing confusion in the team.
Old, unused environment variables cluttering your files with no way to identify them.
Sharing credentials via Slack or email, leaving security traces everywhere.
Everything you need to manage environment variables like a pro
Automatically detect and sync differences between .env and .env.example files.
Find environment variables that are no longer used in your codebase.
Remove unused keys with automatic backups. Never lose data.
Share credentials securely with self-destructing links.
Compare staging, production, and any custom environment files.
Get intelligent recommendations for detected keys and patterns.
Three simple steps to better environment management
Add Laravel ENV Guardian to your project with a single command.
Instantly see what's out of sync or unused in your environment files.
Keep your environment files clean, synced, and secure automatically.
composer require oscarcoleto/laravel-env-guardian --dev
php artisan vendor:publish --tag=env-guardian-config
php artisan env:check
That's it! You're ready to go.
Real-world scenarios and commands
Verify that .env and .env.example are in sync
Automatically add missing keys to .env.example
Detect environment variables not used in your code
Create self-destructing links for secrets
Support the project if it saves you time
Every contribution helps maintain and improve this project