andreazorzi/dotencrypt
最新稳定版本:1.0.0
Composer 安装命令:
composer require andreazorzi/dotencrypt
包简介
A Laravel multi-env encryptor for secure team sharing.
README 文档
README
A Laravel multi-env encryptor for secure team sharing.
Installation
composer require andreazorzi/dotencrypt
Requirements
- PHP 8.0+
- Illuminate/Console
Usage
Encrypt
php artisan dotencrypt:encrypt {files?*}
If no file is specified, the command will search for .env and .env.production by default.
Once launched, the command will prompt for an encryption password, then encrypt the selected env files in the storage/env folder.
Decrypt
php artisan dotencrypt:decrypt {files?*}
If no file is specified, the command will search for .env and .env.production by default in the storage/env folder.
Once launched, the command will prompt for the decryption password, then decrypt the selected encrypted files and restore them to their original location.
If the decryption password does not match the encryption password, an error will be shown in the console.
Check Updates
php artisan dotencrypt:check-updates
This command compares all encrypted files in the storage/env folder with their local counterparts to detect synchronization issues.
Behavior
- Hashes match: No action needed, files are in sync
- Local file missing or local file is older: Suggests running decrypt to restore the latest version
- Local file is newer: Suggests running encrypt to update the encrypted version
This helps keep your team's environment files synchronized and prevents accidental overwrites.
License
MIT License
统计信息
- 总下载量: 37
- 月度下载量: 0
- 日度下载量: 0
- 收藏数: 1
- 点击次数: 0
- 依赖项目数: 0
- 推荐数: 0
其他信息
- 授权协议: MIT
- 更新时间: 2025-11-06