cleaniquecoders/laravel-config-backup
最新稳定版本:v1.1.0
Composer 安装命令:
composer require cleaniquecoders/laravel-config-backup
包简介
Backup and restore Laravel configuration (.env and database settings) as a portable AES-256 encrypted archive.
关键字:
README 文档
README
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.
Features
- 🔐 AES-256 password-encrypted archives (the password is never stored)
- 📦 Two sections:
env(the.envfile) anddatabase(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
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
# 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
Full reference lives in docs/:
- Getting Started — installation & configuration
- Usage — CLI, programmatic, and the web UI
- Configuration — config keys, database allowlist, scheduling & notifications
- Guides — authorization,
APP_KEYportability, local development
Testing
composer test
Changelog
Please see CHANGELOG for more information on what has changed recently.
Contributing
Please see CONTRIBUTING for details.
Security Vulnerabilities
Please review our security policy on how to report security vulnerabilities.
Credits
License
The MIT License (MIT). Please see License File for more information.
统计信息
- 总下载量: 0
- 月度下载量: 0
- 日度下载量: 0
- 收藏数: 0
- 点击次数: 1
- 依赖项目数: 0
- 推荐数: 0
其他信息
- 授权协议: MIT
- 更新时间: 2026-06-08
