PHPackages                             crissi/laravel-env-phpstan-rules - 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. [Validation &amp; Sanitization](/categories/validation)
4. /
5. crissi/laravel-env-phpstan-rules

ActiveLibrary[Validation &amp; Sanitization](/categories/validation)

crissi/laravel-env-phpstan-rules
================================

Prevent env use outside config directory

v0.1.1(5y ago)055MITPHPPHP &gt;=7.0.0

Since Sep 6Pushed 3y ago1 watchersCompare

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

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

laravel-env-phpstan-rule
========================

[](#laravel-env-phpstan-rule)

Prevent env use outside config directory

Installation
============

[](#installation)

1. composer require crissi/laravel-env-phpstan-rules
2. include rules.neon in your project's PHPStan config:

```
includes:
    - vendor/crissi/laravel-env-phpstan-rules/rules.neon

```

###  Health Score

20

—

LowBetter than 14% of packages

Maintenance20

Infrequent updates — may be unmaintained

Popularity8

Limited adoption so far

Community7

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

Every ~241 days

Total

2

Last Release

1832d ago

### Community

Maintainers

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

---

Top Contributors

[![crissi](https://avatars.githubusercontent.com/u/3076578?v=4)](https://github.com/crissi "crissi (5 commits)")

---

Tags

PHPStanenvironmentenv

###  Code Quality

TestsPHPUnit

### Embed Badge

![Health badge](/badges/crissi-laravel-env-phpstan-rules/health.svg)

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

###  Alternatives

[vlucas/phpdotenv

Loads environment variables from `.env` to `getenv()`, `$\_ENV` and `$\_SERVER` automagically.

13.5k602.4M5.4k](/packages/vlucas-phpdotenv)[symfony/dotenv

Registers environment variables from a .env file

3.8k226.7M2.3k](/packages/symfony-dotenv)[jbzoo/utils

Collection of PHP functions, mini classes and snippets for everyday developer's routine life.

8321.5M36](/packages/jbzoo-utils)[lionix/envclient

Laravel environment client and console commands.

1621.5k](/packages/lionix-envclient)[melihovv/laravel-env-validator

Laravel Validator for the .env file

1639.7k1](/packages/melihovv-laravel-env-validator)[encodia/laravel-health-env-vars

Custom check for Spatie's Laravel Health - Ensure every .env variable you need has been set

20143.5k](/packages/encodia-laravel-health-env-vars)

PHPackages © 2026

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