DEV Community

Cover image for Building a safer way to manage .env in Laravel β€” and I’ve just released the public roadmap
Vanni Daghini
Vanni Daghini

Posted on

Building a safer way to manage .env in Laravel β€” and I’ve just released the public roadmap

Hi everyone πŸ‘‹

A few days ago I shared here a tool I’ve been building for Laravel to make working with .env files a bit safer and less stressful.

Over the past weeks I realised how easy it is to break an application just by:
β€’ missing an environment variable

β€’ overwriting the wrong .env

β€’ changing something in production too quickly

So I decided to build a small tool whose only job is to make .env management more safe, predictable and reversible β€” without turning Laravel into something it’s not.

I’ve now published a public product roadmap so that everything is clear and transparent:
πŸ‘‰ https://github.com/Vanni7544/config-manager/blob/main/ROADMAP.md

What the tool currently does

Right now Config Manager allows you to:

βœ” export environment configuration

βœ” validate required variables before export

βœ” generate a .env.config-manager file

βœ” optionally apply it using --apply

βœ” automatically back up the previous .env

βœ” rollback safely when needed

βœ” show clear warnings when dealing with production

So instead of editing .env manually and hoping for the best,
the workflow becomes much more controlled and calm.

What’s coming next (Pro Edition)

In the roadmap I describe the next major goals, including:

πŸ”Ή local audit logs (no SaaS, no external services)

πŸ”Ή the ability to choose which backup to restore

πŸ”Ή a simple terminal CLI so nobody needs Tinker

πŸ”Ή better onboarding and safety UX

All development will stay focused on:

βœ” safety

βœ” reversibility

βœ” predictability

βœ” keeping things local

Long-term vision

There will eventually be a Security / Enterprise Edition with things like:

πŸ”Έ declarative environment rules

πŸ”Έ dry-run mode with human-readable output

πŸ”Έ structured audit logging

πŸ”Έ CI/CD validation support

πŸ”Έ diff between environment versions

But the core philosophy will never change:
🚫 no remote config storage

🚫 no silent updates

🚫 no hidden magic

If you want to have a look

GitHub (details, docs, roadmap):
πŸ‘‰ https://github.com/Vanni7544/config-manager

AMA β€” happy to chat πŸ™‚

If you’re curious about:

β€’ why I built it

β€’ how it works internally

β€’ real problems it solved for me

β€’ what you would improve

β€’ whether this is useful in your workflow

…feel free to ask anything.

I’m not trying to spam β€” I genuinely enjoy talking about safe configuration practices in Laravel and learning from how others do it.

Thanks for reading πŸ™

Top comments (0)