PHPackages                             cleaniquecoders/laravel-config-backup - PHPackages - PHPackages  [Skip to content](#main-content)[PHPackages](/)[Directory](/)[Categories](/categories)[Trending](/trending)[Leaderboard](/leaderboard)[Changelog](/changelog)[Analyze](/analyze)[Collections](/collections)[Log in](/login)[Sign up](/register)

1. [Directory](/)
2. /
3. [Security](/categories/security)
4. /
5. cleaniquecoders/laravel-config-backup

ActiveLibrary[Security](/categories/security)

cleaniquecoders/laravel-config-backup
=====================================

Backup and restore Laravel configuration (.env and database settings) as a portable AES-256 encrypted archive.

v1.1.0(1mo ago)0170[2 PRs](https://github.com/cleaniquecoders/laravel-config-backup/pulls)MITPHPPHP ^8.3||^8.4CI passing

Since Jun 8Pushed 1mo agoCompare

[ Source](https://github.com/cleaniquecoders/laravel-config-backup)[ Packagist](https://packagist.org/packages/cleaniquecoders/laravel-config-backup)[ Docs](https://github.com/cleaniquecoders/laravel-config-backup)[ GitHub Sponsors]()[ RSS](/packages/cleaniquecoders-laravel-config-backup/feed)WikiDiscussions main Synced 1w ago

READMEChangelog (2)Dependencies (33)Versions (5)Used By (0)

Laravel Config Backup
=====================

[](#laravel-config-backup)

[![Latest Version on Packagist](https://camo.githubusercontent.com/16025395aec87a1c43576fc23ca6fa7cd3ad0c18b34503655bda80008cc08b23/68747470733a2f2f696d672e736869656c64732e696f2f7061636b61676973742f762f636c65616e69717565636f646572732f6c61726176656c2d636f6e6669672d6261636b75702e7376673f7374796c653d666c61742d737175617265)](https://packagist.org/packages/cleaniquecoders/laravel-config-backup) [![GitHub Tests Action Status](https://camo.githubusercontent.com/b88cff76014665ba23468c8ad6546cda3d8e5af414e7541bc515cd4dd9d231b8/68747470733a2f2f696d672e736869656c64732e696f2f6769746875622f616374696f6e732f776f726b666c6f772f7374617475732f636c65616e69717565636f646572732f6c61726176656c2d636f6e6669672d6261636b75702f72756e2d74657374732e796d6c3f6272616e63683d6d61696e266c6162656c3d7465737473267374796c653d666c61742d737175617265)](https://github.com/cleaniquecoders/laravel-config-backup/actions?query=workflow%3Arun-tests+branch%3Amain) [![Total Downloads](https://camo.githubusercontent.com/c4155145ece0acf6c8b439032920452a45c1784488351210bdc8bb4b01605f74/68747470733a2f2f696d672e736869656c64732e696f2f7061636b61676973742f64742f636c65616e69717565636f646572732f6c61726176656c2d636f6e6669672d6261636b75702e7376673f7374796c653d666c61742d737175617265)](https://packagist.org/packages/cleaniquecoders/laravel-config-backup)

Back up and restore your Laravel application **configuration** — the `.env` file and database-stored settings — as a single **portable, AES-256 password-encrypted ZIP**. Contents are stored decrypted inside the encrypted archive, so on import every encrypted database column is **re-encrypted with the destination server's `APP_KEY`** — making a backup taken on one server restorable on another. Every restore takes an automatic **pre-restore safety snapshot** first.

[![Config Backup dashboard](assets/dashboard.png)](assets/dashboard.png)

Features
--------

[](#features)

- 🔐 AES-256 password-encrypted archives (the password is never stored)
- 📦 Two sections: `env` (the `.env` file) and `database` (allowlisted DB-stored settings)
- 🔁 Portable across servers — DB columns re-encrypted with the destination `APP_KEY`
- 🛟 Automatic pre-restore safety snapshot + preview/diff before restoring
- 🧹 Retention pruning, optional scheduler, mail notifications
- 🖥️ Artisan commands and an optional Livewire + Flux UI

Installation
------------

[](#installation)

```
composer require cleaniquecoders/laravel-config-backup
php artisan vendor:publish --tag="laravel-config-backup-migrations"
php artisan vendor:publish --tag="laravel-config-backup-config"
php artisan migrate
```

> **Store archives on a private disk.** They contain every secret — the ZIP encryption is a second layer, not a licence to expose them.

Quick Start
-----------

[](#quick-start)

```
# Create a backup (prompts for the encryption password securely)
php artisan config-backup:create --sections=env,database --notes="before upgrade"

# List, preview a restore, then restore
php artisan config-backup:list
php artisan config-backup:restore {uuid} --dry-run
php artisan config-backup:restore {uuid}
```

```
use CleaniqueCoders\ConfigBackup\Facades\ConfigBackup;

$backup = ConfigBackup::create(['env', 'database'], 'a-strong-password');
$result = ConfigBackup::restore($absPath, 'a-strong-password', ['env', 'database']);
```

Documentation
-------------

[](#documentation)

Full reference lives in **[docs/](docs/README.md)**:

- [Getting Started](docs/01-getting-started/README.md) — installation &amp; configuration
- [Usage](docs/02-usage/README.md) — CLI, programmatic, and the web UI
- [Configuration](docs/03-configuration/README.md) — config keys, database allowlist, scheduling &amp; notifications
- [Guides](docs/04-guides/README.md) — authorization, `APP_KEY` portability, local development

Testing
-------

[](#testing)

```
composer test
```

Changelog
---------

[](#changelog)

Please see [CHANGELOG](CHANGELOG.md) for more information on what has changed recently.

Contributing
------------

[](#contributing)

Please see [CONTRIBUTING](CONTRIBUTING.md) for details.

Security Vulnerabilities
------------------------

[](#security-vulnerabilities)

Please review [our security policy](../../security/policy) on how to report security vulnerabilities.

Credits
-------

[](#credits)

- [Nasrul Hazim Bin Mohamad](https://github.com/nasrulhazim)
- [All Contributors](../../contributors)

License
-------

[](#license)

The MIT License (MIT). Please see [License File](LICENSE.md) for more information.

###  Health Score

45

—

FairBetter than 91% of packages

Maintenance92

Actively maintained with recent releases

Popularity15

Limited adoption so far

Community6

Small or concentrated contributor base

Maturity54

Maturing project, gaining track record

 Bus Factor1

Top contributor holds 100% of commits — single point of failure

How is this calculated?**Maintenance (25%)** — Last commit recency, latest release date, and issue-to-star ratio. Uses a 2-year decay window.

**Popularity (30%)** — Total and monthly downloads, GitHub stars, and forks. Logarithmic scaling prevents top-heavy scores.

**Community (15%)** — Contributors, dependents, forks, watchers, and maintainers. Measures real ecosystem engagement.

**Maturity (30%)** — Project age, version count, PHP version support, and release stability.

###  Release Activity

Cadence

Every ~0 days

Total

2

Last Release

46d ago

### Community

Maintainers

![](https://www.gravatar.com/avatar/b57069d0f4b634f65eccc6e5d5848990e25968d45ec2cf46d626c6a4658f944b?d=identicon)[nasrulhazim.m](/maintainers/nasrulhazim.m)

---

Top Contributors

[![nasrulhazim](https://avatars.githubusercontent.com/u/10341422?v=4)](https://github.com/nasrulhazim "nasrulhazim (9 commits)")

---

Tags

laravelconfigurationSettingsencryptionbackupenvrestoreCleanique Coderslaravel-config-backup

###  Code Quality

TestsPest

Static AnalysisPHPStan

Code StyleLaravel Pint

### Embed Badge

![Health badge](/badges/cleaniquecoders-laravel-config-backup/health.svg)

```
[![Health](https://phpackages.com/badges/cleaniquecoders-laravel-config-backup/health.svg)](https://phpackages.com/packages/cleaniquecoders-laravel-config-backup)
```

###  Alternatives

[psalm/plugin-laravel

Psalm plugin for Laravel

3345.3M347](/packages/psalm-plugin-laravel)[spatie/laravel-health

Monitor the health of a Laravel application

87912.0M177](/packages/spatie-laravel-health)[laravel/ai

The official AI SDK for Laravel.

1.0k3.2M246](/packages/laravel-ai)[simplestats-io/laravel-client

Server-side analytics for Laravel that follows the full funnel from visit to registration to payment, attributed to the channel that drove it. Revenue, MRR, churn and ad-spend profit (ROAS/CAC) per channel. GDPR compliant, ad-blocker proof.

5022.6k](/packages/simplestats-io-laravel-client)[api-platform/laravel

API Platform support for Laravel

58174.6k17](/packages/api-platform-laravel)[masterix21/laravel-licensing

Laravel licensing package with polymorphic assignment to any model, activation keys, expirations/renewals, and seat control via LicenseUsage. Supports offline verification with public-key–signed tokens, a CLI to generate/rotate/revoke keys, and an extensible architecture via config and contracts.

1613.3k4](/packages/masterix21-laravel-licensing)

PHPackages © 2026

[Directory](/)[Categories](/categories)[Trending](/trending)[Changelog](/changelog)[Analyze](/analyze)
