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.0(6mo ago)164MITPHPPHP ^8.0

Since Nov 6Pushed 6mo 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 1mo ago

READMEChangelogDependencies (2)Versions (2)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

34

—

LowBetter than 77% of packages

Maintenance67

Regular maintenance activity

Popularity13

Limited adoption so far

Community6

Small or concentrated contributor base

Maturity40

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

Unknown

Total

1

Last Release

193d 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 (9 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

[camcima/dukpt-php

DUKPT implementation in PHP

25153.1k](/packages/camcima-dukpt-php)[poly-crypto/poly-crypto

High-level cryptographic functions that are interoperable between NodeJS and PHP 7.1+

127.8k1](/packages/poly-crypto-poly-crypto)

PHPackages © 2026

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