PHPackages                             ouun/acorn-env-encryption - 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. ouun/acorn-env-encryption

ActivePackage[Security](/categories/security)

ouun/acorn-env-encryption
=========================

Encrypt &amp; Decrypt .env files for Roots Acorn.

v1.0.0(2y ago)9407MITPHPPHP ^8.0

Since Sep 1Pushed 2y ago1 watchersCompare

[ Source](https://github.com/ouun/acorn-env-encryption)[ Packagist](https://packagist.org/packages/ouun/acorn-env-encryption)[ RSS](/packages/ouun-acorn-env-encryption/feed)WikiDiscussions main Synced 1mo ago

READMEChangelogDependencies (1)Versions (2)Used By (0)

Acorn .env Encryption
=====================

[](#acorn-env-encryption)

Laravel v9.32.0 brought the release of two new Artisan commands: env:encrypt and env:decrypt. These commands allow you to encrypt and decrypt your .env files as well as environment specific files such as `.env.testing`, `.env.local`, `.env.production`, etc.

This package adds that encryption and decryption support to Roots Acorn. You can now store your .env file in your version control system (e.g. GIT) without worrying about exposing sensitive information. We are using it for Continuous Integration and Continuous Deployment (CI/CD) to deploy our Acorn applications to staging and production environments with GitHub Actions.

The commands are adjusted by this package to work with Acorn, as paths to the .env files are different from Laravel. However, I opened a PR to add support for Acorn to the Laravel core, so this package hopefully will be obsolete in the future: [PR #48271](https://github.com/laravel/framework/pull/48271)

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

[](#installation)

You can install this package with Composer:

```
composer require ouun/acorn-env-encryption
```

You can publish the config file with:

```
$ wp acorn vendor:publish --provider="Ouun\EnvEncryption\Providers\EnvEncryptionServiceProvider"
```

Usage
-----

[](#usage)

Please refer to the [Laravel documentation](https://laravel.com/docs/10.x/configuration#encryption) for more information on how to encrypt &amp; decrypt .env files.

Please just note that instead of `$ php artisan` you will need to use WP-CLI:

```
$ wp acorn env:encrypt
```

###  Health Score

26

—

LowBetter than 43% of packages

Maintenance20

Infrequent updates — may be unmaintained

Popularity18

Limited adoption so far

Community7

Small or concentrated contributor base

Maturity48

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

990d ago

### Community

Maintainers

![](https://www.gravatar.com/avatar/b1119667d96ab4063e83fd0cd4797ec2e010d86e24e1a4bec13ce9cc5f5b045f?d=identicon)[ouun](/maintainers/ouun)

---

Top Contributors

[![ouun](https://avatars.githubusercontent.com/u/32090713?v=4)](https://github.com/ouun "ouun (2 commits)")

### Embed Badge

![Health badge](/badges/ouun-acorn-env-encryption/health.svg)

```
[![Health](https://phpackages.com/badges/ouun-acorn-env-encryption/health.svg)](https://phpackages.com/packages/ouun-acorn-env-encryption)
```

###  Alternatives

[mrgswift/laravel-encryptenv

Laravel Environment Variable Encryption

4243.7k](/packages/mrgswift-laravel-encryptenv)[richardstyles/eloquent-aes

A Laravel Eloquent package to allow for model attribute encryption, using a seperate key

3437.0k](/packages/richardstyles-eloquent-aes)[tzsk/crypton

Laravel API Request Response Encryption

417.1k](/packages/tzsk-crypton)

PHPackages © 2026

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