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)