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(4mo ago)1301MITPHPPHP ^8.0

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

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

38

—

LowBetter than 83% of packages

Maintenance75

Regular maintenance activity

Popularity17

Limited adoption so far

Community6

Small or concentrated contributor base

Maturity43

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

137d 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.

79227.1M227](/packages/laravel-mcp)[spatie/laravel-medialibrary

Associate files with Eloquent models

6.2k45.4M704](/packages/spatie-laravel-medialibrary)[propaganistas/laravel-disposable-email

Disposable email validator

6023.2M7](/packages/propaganistas-laravel-disposable-email)[spatie/laravel-health

Monitor the health of a Laravel application

88212.7M188](/packages/spatie-laravel-health)[laravel/ai

The official AI SDK for Laravel.

1.1k4.6M319](/packages/laravel-ai)[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.

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

PHPackages © 2026

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