PHPackages                             andreazorzi/dotencrypt - 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. andreazorzi/dotencrypt

ActiveLibrary[Security](/categories/security)

andreazorzi/dotencrypt
======================

A Laravel multi-env encryptor for secure team sharing.

1.0.2(3mo ago)1254MITPHPPHP ^8.0

Since Nov 6Pushed 3mo agoCompare

[ Source](https://github.com/andreazorzi/dotencrypt)[ Packagist](https://packagist.org/packages/andreazorzi/dotencrypt)[ Docs](https://github.com/andreazorzi/dotencrypt)[ RSS](/packages/andreazorzi-dotencrypt/feed)WikiDiscussions master Synced today

READMEChangelog (2)Dependencies (6)Versions (4)Used By (0)

DotEncrypt 🔐
============

[](#dotencrypt-)

[![Latest Version on Packagist](https://camo.githubusercontent.com/1aae42b9e9e0f122f1da8fc7499b9bf8c702377a48a1e50c7fc4c74761613009/68747470733a2f2f696d672e736869656c64732e696f2f7061636b61676973742f762f616e647265617a6f727a692f646f74656e63727970742e7376673f7374796c653d666c61742d737175617265)](https://packagist.org/packages/andreazorzi/dotencrypt)[![Total Downloads](https://camo.githubusercontent.com/cdb1fc93a95b389520b832c06eadff762a55aec6927e8e852eadabf5d2e2a181/68747470733a2f2f696d672e736869656c64732e696f2f7061636b61676973742f64742f616e647265617a6f727a692f646f74656e63727970742e7376673f7374796c653d666c61742d737175617265)](https://packagist.org/packages/andreazorzi/dotencrypt)

A Laravel multi-env encryptor for secure team sharing.

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

[](#installation)

```
composer require andreazorzi/dotencrypt
```

Requirements
------------

[](#requirements)

- PHP 8.0+
- Illuminate/Console

Usage
-----

[](#usage)

### Encrypt

[](#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

[](#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
=============

[](#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

[](#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
-------

[](#license)

MIT License

###  Health Score

39

—

LowBetter than 84% of packages

Maintenance82

Actively maintained with recent releases

Popularity17

Limited adoption so far

Community6

Small or concentrated contributor base

Maturity42

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 ~74 days

Total

3

Last Release

92d ago

### Community

Maintainers

![](https://avatars.githubusercontent.com/u/15615862?v=4)[Andrea Zorzi](/maintainers/andreazorzi)[@andreazorzi](https://github.com/andreazorzi)

---

Top Contributors

[![andreazorzi](https://avatars.githubusercontent.com/u/15615862?v=4)](https://github.com/andreazorzi "andreazorzi (18 commits)")

---

Tags

phplaravelencryptionenvdecryptionAndrea Zorzi

### Embed Badge

![Health badge](/badges/andreazorzi-dotencrypt/health.svg)

```
[![Health](https://phpackages.com/badges/andreazorzi-dotencrypt/health.svg)](https://phpackages.com/packages/andreazorzi-dotencrypt)
```

###  Alternatives

[laravel/mcp

Rapidly build MCP servers for your Laravel applications.

77022.3M150](/packages/laravel-mcp)[spatie/laravel-medialibrary

Associate files with Eloquent models

6.1k43.2M632](/packages/spatie-laravel-medialibrary)[propaganistas/laravel-disposable-email

Disposable email validator

6023.0M7](/packages/propaganistas-laravel-disposable-email)[spatie/laravel-responsecache

Speed up a Laravel application by caching the entire response

2.8k9.0M69](/packages/spatie-laravel-responsecache)[laravel/sail

Docker files for running a basic Laravel application.

1.9k205.7M1.3k](/packages/laravel-sail)[spatie/laravel-health

Monitor the health of a Laravel application

87512.0M165](/packages/spatie-laravel-health)

PHPackages © 2026

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