Skip to content

Safely manage Laravel .env files — export, validate, backup, and rollback without risk.

License

Notifications You must be signed in to change notification settings

Vanni7544/config-manager

Repository files navigation

Config Manager for Laravel

💰 Get Config Manager on Gumroad:
👉 [https://daghini.gumroad.com/l/ifyzw]

PHP Laravel License Status

Safely manage multiple .env configurations for your Laravel projects.

Config Manager helps you export, validate, apply, and rollback environment configuration files — without the risk of silently breaking your application.


Why this exists

Managing .env files across multiple environments (local, staging, production) is error-prone.

A single mistake can:

  • break your application
  • leak secrets
  • cause downtime in production

Config Manager makes configuration changes:

  • explicit
  • reversible
  • and safe-by-default

Safety guarantees

Config Manager guarantees that:

  • Your existing .env file is never modified unless you explicitly use --apply
  • Every applied change creates an automatic backup
  • You can rollback the previous .env at any time
  • Required variables are validated before export
  • Production environments trigger explicit warnings

No hidden side-effects.
No silent overwrites.


Requirements

  • PHP 8.2+
  • Laravel 10+

Installation

Install the package using Composer:

composer require vanni/config-manager

Basic usage

Export an environment configuration

php artisan config-manager:export <project-id> <environment-id>

This generates:

.env.config-manager

➡ Your existing .env file is not modified.


Apply immediately (with automatic backup)

php artisan config-manager:export <project-id> <environment-id> --apply

This will:

✔ backup your current .env
✔ replace it with the generated one


Rollback the last applied .env

php artisan config-manager:export --rollback

Production safety

If the selected environment is marked as production, you will see a clear warning prompt before anything is applied.


Automatic backups

Backups are stored in:

.env.backups/

and handled automatically.


Support

This is a commercial package.

If you need help, please contact the author using the same platform where you purchased the software (e.g., Gumroad).

GitHub issues and pull requests are not accepted.


License

This software is commercial and proprietary.

You MAY use it in your own personal or commercial projects.
You may NOT redistribute or publish the source code.

The English version of this documentation is the legally valid version.

About

Safely manage Laravel .env files — export, validate, backup, and rollback without risk.

Topics

Resources

License

Contributing

Security policy

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages