PHPackages                             castelnuovo/laravel-env - 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. castelnuovo/laravel-env

AbandonedArchivedLibrary[Security](/categories/security)

castelnuovo/laravel-env
=======================

Encrypt and decrypt environment files in Laravel

v1.0.3(2y ago)11.9k1MITPHPPHP ^8.1

Since Jan 2Pushed 1y ago1 watchersCompare

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

READMEChangelog (4)Dependencies (13)Versions (5)Used By (0)

 [![](https://camo.githubusercontent.com/1af8b195138edb1f06f5acb4143d96f87def42942f15e457411dd7014dedd0b2/68747470733a2f2f6173736574732e63617374656c6e756f766f2e6465762f6c6f676f2e737667)](https://camo.githubusercontent.com/1af8b195138edb1f06f5acb4143d96f87def42942f15e457411dd7014dedd0b2/68747470733a2f2f6173736574732e63617374656c6e756f766f2e6465762f6c6f676f2e737667)

 castelnuovo/laravel-env
=========================

[](#--castelnuovolaravel-env)

[![Latest Version on Packagist](https://camo.githubusercontent.com/7d6e23ae9e185859d14940cb97ef9a8d118ccd8c3ee78bcb3699b9568bc79828/68747470733a2f2f696d672e736869656c64732e696f2f7061636b61676973742f762f63617374656c6e756f766f2f6c61726176656c2d656e762e7376673f7374796c653d666c61742d737175617265)](https://packagist.org/packages/castelnuovo/laravel-env)[![GitHub Tests Action Status](https://camo.githubusercontent.com/42d7d3199139eb794bd4859558bfbd0e40dbd7a3b03a740ac340a4ba84ad70ca/68747470733a2f2f696d672e736869656c64732e696f2f6769746875622f616374696f6e732f776f726b666c6f772f7374617475732f63617374656c6e756f766f2f6c61726176656c2d656e762f72756e2d74657374732e796d6c3f6272616e63683d6d61696e266c6162656c3d7465737473267374796c653d666c61742d737175617265)](https://github.com/castelnuovo/laravel-env/actions?query=workflow%3Arun-tests+branch%3Amain)[![GitHub Code Style Action Status](https://camo.githubusercontent.com/83f56f2d51293e94761df50df1c6e6a6bdcdf47104deef7603d7627236bd59a6/68747470733a2f2f696d672e736869656c64732e696f2f6769746875622f616374696f6e732f776f726b666c6f772f7374617475732f63617374656c6e756f766f2f6c61726176656c2d656e762f6669782d7068702d636f64652d7374796c652d6973737565732e796d6c3f6272616e63683d6d61696e266c6162656c3d636f64652532307374796c65267374796c653d666c61742d737175617265)](https://github.com/castelnuovo/laravel-env/actions?query=workflow%3A%22Fix+PHP+code+style+issues%22+branch%3Amain)[![Total Downloads](https://camo.githubusercontent.com/5ba5b71501b819898b3b22f9674ec7501c0f99d457aa2e31298f5342ae2340a8/68747470733a2f2f696d672e736869656c64732e696f2f7061636b61676973742f64742f63617374656c6e756f766f2f6c61726176656c2d656e762e7376673f7374796c653d666c61742d737175617265)](https://packagist.org/packages/castelnuovo/laravel-env)

Encrypt and decrypt environment files in Laravel

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

[](#installation)

You can install the package via composer:

```
composer require castelnuovo/laravel-env
```

Usage
-----

[](#usage)

```
# Create production environment file
cp .env .env.production

# Generate a key and encrypt an environment file
php artisan env:encrypt --env production

# Decrypt and edit an environment file
php artisan env:edit production
```

Testing
-------

[](#testing)

```
composer test
```

Changelog
---------

[](#changelog)

Please see [CHANGELOG](CHANGELOG.md) for more information on what has changed recently.

Contributing
------------

[](#contributing)

Please see [CONTRIBUTING](CONTRIBUTING.md) for details.

Security Vulnerabilities
------------------------

[](#security-vulnerabilities)

Please review [our security policy](../../security/policy) on how to report security vulnerabilities.

Credits
-------

[](#credits)

- [Luca Castelnuovo](https://github.com/lucacastelnuovo)
- [Egidius Mengelberg](https://github.com/egidiusmengelberg)
- [All Contributors](../../contributors)

License
-------

[](#license)

The MIT License (MIT). Please see [License File](LICENSE.md) for more information.

###  Health Score

30

—

LowBetter than 62% of packages

Maintenance26

Infrequent updates — may be unmaintained

Popularity18

Limited adoption so far

Community11

Small or concentrated contributor base

Maturity54

Maturing project, gaining track record

 Bus Factor1

Top contributor holds 70.8% 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 ~19 days

Total

4

Last Release

857d ago

### Community

Maintainers

![](https://www.gravatar.com/avatar/438241940cac7de0effa5a32587faae51ec85a7ae3c3e6a7b0a2321afd97c768?d=identicon)[lucacastelnuovo](/maintainers/lucacastelnuovo)

---

Top Contributors

[![lucacastelnuovo](https://avatars.githubusercontent.com/u/26206253?v=4)](https://github.com/lucacastelnuovo "lucacastelnuovo (17 commits)")[![dependabot[bot]](https://avatars.githubusercontent.com/in/29110?v=4)](https://github.com/dependabot[bot] "dependabot[bot] (4 commits)")[![github-actions[bot]](https://avatars.githubusercontent.com/in/15368?v=4)](https://github.com/github-actions[bot] "github-actions[bot] (3 commits)")

---

Tags

laravellaravel-envCastelnuovo Solutions

###  Code Quality

TestsPest

Static AnalysisPHPStan

Code StyleLaravel Pint

### Embed Badge

![Health badge](/badges/castelnuovo-laravel-env/health.svg)

```
[![Health](https://phpackages.com/badges/castelnuovo-laravel-env/health.svg)](https://phpackages.com/packages/castelnuovo-laravel-env)
```

###  Alternatives

[spatie/laravel-permission

Permission handling for Laravel 12 and up

12.9k102.4M1.4k](/packages/spatie-laravel-permission)[spatie/laravel-pdf

Create PDFs in Laravel apps

1.0k4.8M47](/packages/spatie-laravel-pdf)[dedoc/scramble

Automatic generation of API documentation for Laravel applications.

2.1k11.2M101](/packages/dedoc-scramble)[defstudio/telegraph

A laravel facade to interact with Telegram Bots

816333.9k3](/packages/defstudio-telegraph)[spatie/laravel-passkeys

Use passkeys in your Laravel app

471890.7k39](/packages/spatie-laravel-passkeys)[rawilk/profile-filament-plugin

Profile &amp; MFA starter kit for filament.

3914.6k](/packages/rawilk-profile-filament-plugin)

PHPackages © 2026

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