PHPackages                             claas/phpdotenvcache - 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. [Caching](/categories/caching)
4. /
5. claas/phpdotenvcache

ActiveLibrary[Caching](/categories/caching)

claas/phpdotenvcache
====================

A simple cached loader for Phpdotenv

v0.0.3(9y ago)046MITPHP

Since Mar 30Pushed 9y agoCompare

[ Source](https://github.com/caugner/phpdotenvcache)[ Packagist](https://packagist.org/packages/claas/phpdotenvcache)[ Docs](https://github.com/caugner/phpdotenvcache)[ RSS](/packages/claas-phpdotenvcache/feed)WikiDiscussions master Synced 2mo ago

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

Cache for PHP dotenv
====================

[](#cache-for-php-dotenv)

A simple cached loader for [PHP dotenv](https://github.com/vlucas/phpdotenv).

[![Build Status](https://camo.githubusercontent.com/46163ce20d2b73c2ed2bb445535dc712e54de83f45cc8dcd7baac4aaa965213c/68747470733a2f2f7472617669732d63692e6f72672f636175676e65722f706870646f74656e7663616368652e7376673f6272616e63683d6d6173746572)](https://travis-ci.org/caugner/phpdotenvcache)[![Code Climate](https://camo.githubusercontent.com/68a7d70e9b25c08dd538dbc17ab5d8a680b7bdb49d4a0f5fc2347db158d876df/68747470733a2f2f636f6465636c696d6174652e636f6d2f6769746875622f636175676e65722f706870646f74656e7663616368652f6261646765732f6770612e737667)](https://codeclimate.com/github/caugner/phpdotenvcache)[![Latest Stable Version](https://camo.githubusercontent.com/d2b39a1339f3b3625aa9d65b5cabb48db2b0be9e2ab245e6497c0ec163296572/68747470733a2f2f706f7365722e707567782e6f72672f636c6161732f706870646f74656e7663616368652f762f737461626c65)](https://packagist.org/packages/claas/phpdotenvcache)[![License](https://camo.githubusercontent.com/060efd5749a649c675671866e454b5f9e41e97daeebfcab3ab7bf567ceab1381/68747470733a2f2f706f7365722e707567782e6f72672f636c6161732f706870646f74656e7663616368652f6c6963656e7365)](https://packagist.org/packages/claas/phpdotenvcache)

Usage
-----

[](#usage)

First, install [Composer](http://getcomposer.org/).

```
curl -sS https://getcomposer.org/installer | php
```

Next, add phpdotenvcache:

```
php composer.phar require claas/phpdotenvcache

```

Then, include Composer's autoloader:

```
require 'vendor/autoload.php';
```

Finally, you can use the PHP dotenv cache:

```
$dotenv = new Dotenv\CachedDotenv();
$dotenv->load(__DIR__);
// Alternatively, only load to $_ENV or $_SERVER globals:
// $dotenv->loadToEnv(__DIR__);
// $dotenv->loadToServer(__DIR__);
```

###  Health Score

25

—

LowBetter than 37% of packages

Maintenance20

Infrequent updates — may be unmaintained

Popularity8

Limited adoption so far

Community6

Small or concentrated contributor base

Maturity55

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

Total

3

Last Release

3332d ago

### Community

Maintainers

![](https://www.gravatar.com/avatar/01bb8c6b5e590150f4fba1fbdc704000f5b2d083754f5a8962c1c3b8be59f397?d=identicon)[claas](/maintainers/claas)

---

Top Contributors

[![caugner](https://avatars.githubusercontent.com/u/495429?v=4)](https://github.com/caugner "caugner (10 commits)")

---

Tags

cachephpphpdotenv

### Embed Badge

![Health badge](/badges/claas-phpdotenvcache/health.svg)

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

###  Alternatives

[predis/predis

A flexible and feature-complete Redis/Valkey client for PHP.

7.8k305.7M2.4k](/packages/predis-predis)[snc/redis-bundle

A Redis bundle for Symfony

1.0k39.4M67](/packages/snc-redis-bundle)[react/cache

Async, Promise-based cache interface for ReactPHP

444112.4M40](/packages/react-cache)[illuminate/cache

The Illuminate Cache package.

12835.6M1.4k](/packages/illuminate-cache)[colinmollenhour/php-redis-session-abstract

A Redis-based session handler with optimistic locking

6325.6M14](/packages/colinmollenhour-php-redis-session-abstract)[elcobvg/laravel-opcache

Custom OPcache Cache Driver for Laravel. Faster than Redis or memcached.

43317.1k1](/packages/elcobvg-laravel-opcache)

PHPackages © 2026

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