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 4w 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 35% 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

3378d ago

### Community

Maintainers

![](https://avatars.githubusercontent.com/u/1681554?v=4)[Claas Ziemke](/maintainers/claas)[@claas](https://github.com/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

[laravel/framework

The Laravel Framework.

35.3k543.8M19.5k](/packages/laravel-framework)[tempest/framework

The PHP framework that gets out of your way.

2.2k31.1k12](/packages/tempest-framework)[roots/acorn

Framework for Roots WordPress projects built with Laravel components.

9762.4M123](/packages/roots-acorn)[aedart/athenaeum

Athenaeum is a mono repository; a collection of various PHP packages

245.2k](/packages/aedart-athenaeum)

PHPackages © 2026

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