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)0204MITPHPPHP &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 today

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

22

—

LowBetter than 21% of packages

Maintenance20

Infrequent updates — may be unmaintained

Popularity12

Limited adoption so far

Community7

Small or concentrated contributor base

Maturity41

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

1885d ago

### Community

Maintainers

![](https://avatars.githubusercontent.com/u/3076578?v=4)[Christian](/maintainers/crissi)[@crissi](https://github.com/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.5k640.2M6.3k](/packages/vlucas-phpdotenv)[symfony/dotenv

Registers environment variables from a .env file

3.8k243.3M2.8k](/packages/symfony-dotenv)[lionix/envclient

Laravel environment client and console commands.

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

Laravel Validator for the .env file

1639.9k1](/packages/melihovv-laravel-env-validator)

PHPackages © 2026

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