PHPackages                             coisa/dotenv - 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. coisa/dotenv

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

coisa/dotenv
============

Autoload environment variables from a .env file

2.0.1(1y ago)0232↓100%MITPHPPHP ^8.3

Since Dec 28Pushed 1y ago1 watchersCompare

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

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

CoiSA Dotenv
============

[](#coisa-dotenv)

[![PHP Version](https://camo.githubusercontent.com/7941970873cbf622327607ef4b137d55fe2d5b73c24c118123d707a32539e659/68747470733a2f2f696d672e736869656c64732e696f2f7061636b61676973742f7068702d762f636f6973612f646f74656e762e7376673f7374796c653d666c61742d737175617265)](https://packagist.org/packages/coisa/dotenv)[![Latest Version on Packagist](https://camo.githubusercontent.com/17135661d2dc7c0d4cf22ac8c6b394588498bceb6179d509c0771284e7de44e9/68747470733a2f2f696d672e736869656c64732e696f2f7061636b61676973742f762f636f6973612f646f74656e762e7376673f7374796c653d666c61742d737175617265)](https://packagist.org/packages/coisa/dotenv)[![Software License](https://camo.githubusercontent.com/adef38371fd208ee6cf0b0fbcdf6e449d66153cbf4ab30bc008a7d57b09ec782/68747470733a2f2f696d672e736869656c64732e696f2f6769746875622f6c6963656e73652f636f6973612f646f74656e762e7376673f7374796c653d666c61742d737175617265)](LICENSE)[![Total Downloads](https://camo.githubusercontent.com/22b6be924cfcbd7604c0594717e4ca275f848d8d4f73c83a20a62c672df0edac/68747470733a2f2f696d672e736869656c64732e696f2f7061636b61676973742f64742f636f6973612f646f74656e762e7376673f7374796c653d666c61742d737175617265)](https://packagist.org/packages/coisa/dotenv)

Install
-------

[](#install)

If you want always load the `.env` file in your project, run the following command:

```
$ composer require coisa/dotenv
```

If you just want to load the `.env` file in your project only for development, run the following command:

```
$ composer require --dev coisa/dotenv
```

Since this library uses the `symfony/dotenv` package, all the following files will be loaded:

- `.env`
- `.env.dist`
- `.env.local`
- `.env.$APP_ENV`
- `.env.$APP_ENV.local`

The `.env` files must be in the root of your project.

Credits
-------

[](#credits)

- [Felipe Sayão Lobato Abreu](https://github.com/coisa)

License
-------

[](#license)

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

###  Health Score

36

—

LowBetter than 82% of packages

Maintenance41

Moderate activity, may be stable

Popularity14

Limited adoption so far

Community7

Small or concentrated contributor base

Maturity68

Established project with proven stability

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

Total

5

Last Release

492d ago

Major Versions

1.1.0 → 2.0.02024-11-25

PHP version history (2 changes)1.0.0PHP &gt;=7.2.5

2.0.0PHP ^8.3

### Community

Maintainers

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

---

Top Contributors

[![coisa](https://avatars.githubusercontent.com/u/426835?v=4)](https://github.com/coisa "coisa (6 commits)")

###  Code Quality

TestsPHPUnit

Code StylePHP CS Fixer

### Embed Badge

![Health badge](/badges/coisa-dotenv/health.svg)

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

###  Alternatives

[illuminate/container

The Illuminate Container package.

31278.1M2.0k](/packages/illuminate-container)[symfony/type-info

Extracts PHP types information.

19751.9M114](/packages/symfony-type-info)[civicrm/civicrm-core

Open source constituent relationship management for non-profits, NGOs and advocacy organizations.

728272.9k17](/packages/civicrm-civicrm-core)[internal/dload

Downloads binaries.

98142.7k10](/packages/internal-dload)[symfony/object-mapper

Provides a way to map an object to another object

34885.7k18](/packages/symfony-object-mapper)[xefi/faker-php-laravel

Faker php integration with laravel

1915.1k](/packages/xefi-faker-php-laravel)

PHPackages © 2026

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