PHPackages                             intermax/veil - 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. [Utility &amp; Helpers](/categories/utility)
4. /
5. intermax/veil

ActiveLibrary[Utility &amp; Helpers](/categories/utility)

intermax/veil
=============

Improve working with encrypted environment files in Laravel.

2.4.0(6mo ago)4811.2k↑85.9%4[6 issues](https://github.com/Intermax-Cloudsourcing/veil/issues)[1 PRs](https://github.com/Intermax-Cloudsourcing/veil/pulls)PHPPHP ^8.1CI passing

Since Jan 4Pushed 6mo ago4 watchersCompare

[ Source](https://github.com/Intermax-Cloudsourcing/veil)[ Packagist](https://packagist.org/packages/intermax/veil)[ RSS](/packages/intermax-veil/feed)WikiDiscussions main Synced 1mo ago

READMEChangelog (5)Dependencies (5)Versions (9)Used By (0)

Veil for Laravel
================

[](#veil-for-laravel)

Veil is a package to help manage encrypted environments in your Laravel or Laravel Zero application. It adds an `--only-values` flag to the Laravel encrypted environment commands. Without this package, this environment file:

```
APP_NAME="My awesome app"
APP_ENV=local
APP_DEBUG=true

SOME_API_KEY=12345678

```

Will turn into:

```
eyJpdiI6ImplT2xTaGRzV... # Really long string

```

But with this package you can make it look like this:

```
APP_NAME="My awesome app"
APP_ENV=local
APP_DEBUG=true

SOME_API_KEY=eyJpdiI6ImplT2xTaGRzV...

```

This improves readability of the encrypted environment file, maybe even making the `.env.example` file obsolete.

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

[](#installation)

Just install this package through composer:

```
composer require intermax/veil
```

Usage
-----

[](#usage)

Just use the `env:encrypt` and `env:decrypt` commands as usual, but add an `--only-values` flag:

```
php artisan env:encrypt --only-values ...
php artisan env:decrypt --only-values ...
```

### Only Encrypting Secrets

[](#only-encrypting-secrets)

By default, if the `--only-values` flag is used only variables ending with `_PASSWORD`, `_KEY` and `_SECRET` will be encrypted. You can configure this behaviour with the `--only` flag. If you would only want to encrypt the variables ending with `_SECRET` and the `APP_KEY`, you can specify multiple `--only` flags like this:

```
php artisan env:encrypt --only-values --only=*_SECRET --only=APP_KEY
```

For decrypting, there is no difference: the decrypt command will leave unencrypted values.

### Encrypting Everything

[](#encrypting-everything)

If you still want to encrypt everything while keeping variable names readable, use the `--all` flag:

```
php artisan env:encrypt --only-values --all
```

###  Health Score

47

—

FairBetter than 94% of packages

Maintenance65

Regular maintenance activity

Popularity39

Limited adoption so far

Community16

Small or concentrated contributor base

Maturity56

Maturing project, gaining track record

 Bus Factor2

2 contributors hold 50%+ of commits

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

Recently: every ~167 days

Total

6

Last Release

194d ago

Major Versions

1.0.0 → 2.0.02024-01-05

### Community

Maintainers

![](https://www.gravatar.com/avatar/66799a80d7f6bf4e0d024c1e06e66a3ec14495e2892c0861be3d060a0a0ec9e6?d=identicon)[phoogkamer](/maintainers/phoogkamer)

---

Top Contributors

[![patrickhoogkamer](https://avatars.githubusercontent.com/u/1894838?v=4)](https://github.com/patrickhoogkamer "patrickhoogkamer (4 commits)")[![tomasvanrijsse](https://avatars.githubusercontent.com/u/1403466?v=4)](https://github.com/tomasvanrijsse "tomasvanrijsse (3 commits)")[![angus-mcritchie](https://avatars.githubusercontent.com/u/53469513?v=4)](https://github.com/angus-mcritchie "angus-mcritchie (2 commits)")[![hansgoed](https://avatars.githubusercontent.com/u/2385331?v=4)](https://github.com/hansgoed "hansgoed (1 commits)")

###  Code Quality

TestsPest

Static AnalysisPHPStan

Code StyleLaravel Pint

### Embed Badge

![Health badge](/badges/intermax-veil/health.svg)

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

###  Alternatives

[jcergolj/extra-checks-for-spatie-laravel-server-monitor

Additional custom checks for Spatie laravel-server-monitor package

545.8k](/packages/jcergolj-extra-checks-for-spatie-laravel-server-monitor)

PHPackages © 2026

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