PHPackages                             opxcore/config-cache-files - 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. opxcore/config-cache-files

ActiveLibrary[Caching](/categories/caching)

opxcore/config-cache-files
==========================

The OpxCore config cache file driver.

1.0.4(5y ago)112MITPHPPHP ^7.4CI failing

Since Jan 24Pushed 5y agoCompare

[ Source](https://github.com/opxcore/config-cache-files)[ Packagist](https://packagist.org/packages/opxcore/config-cache-files)[ Docs](https://opxcore.com)[ RSS](/packages/opxcore-config-cache-files/feed)WikiDiscussions master Synced today

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

config-cache-files
==================

[](#config-cache-files)

[![Build Status](https://camo.githubusercontent.com/ebaf2930ef5586cf6da7f69f92ea7d442ecee5bbecf4559041e0e5b7e09d8d19/68747470733a2f2f7472617669732d63692e636f6d2f6f7078636f72652f636f6e6669672d63616368652d66696c65732e7376673f6272616e63683d6d61696e)](https://travis-ci.com/opxcore/config-cache-files)[![Coverage Status](https://camo.githubusercontent.com/5cd21c6ba2fe7165b84f46f8c9feda5a3a3900cc6438c339f09409744e1cde17/68747470733a2f2f636f766572616c6c732e696f2f7265706f732f6769746875622f6f7078636f72652f636f6e6669672d63616368652d66696c65732f62616467652e737667)](https://coveralls.io/github/opxcore/config-cache-files)[![Latest Stable Version](https://camo.githubusercontent.com/a2c527c0dc1175dd75eccbb926580552ddbfde075f8ebe1728dca3e55ea4917c/68747470733a2f2f706f7365722e707567782e6f72672f6f7078636f72652f636f6e6669672d63616368652d66696c65732f762f737461626c65)](https://packagist.org/packages/opxcore/config-cache-files)[![Total Downloads](https://camo.githubusercontent.com/2fef522d55727c6285d4edf2aa8bad4e4719cb9d11137d94bede22082304ecfe/68747470733a2f2f706f7365722e707567782e6f72672f6f7078636f72652f636f6e6669672d63616368652d66696c65732f646f776e6c6f616473)](https://packagist.org/packages/opxcore/config-cache-files)[![License](https://camo.githubusercontent.com/eb387a85bfb29ce984cfb3ffa47ae2df359660b2f6861507a5f560fb7ec7e2b1/68747470733a2f2f706f7365722e707567782e6f72672f6f7078636f72652f636f6e6669672d63616368652d66696c65732f6c6963656e7365)](https://packagist.org/packages/opxcore/config-cache-files)

Installing
----------

[](#installing)

```
composer require opxcore/config-cache-files
```

### Standalone usage:

[](#standalone-usage)

```
use OpxCore\Config\ConfigCacheFiles;

$configFiles = new ConfigCacheFiles($path);
```

### Usage with [container](https://github.com/opxcore/container)

[](#usage-with-container)

```
use OpxCore\Config\Interfaces\ConfigCacheInterface;
use OpxCore\Config\ConfigCacheFiles;

$container->bind(
    ConfigCacheInterface::class,
    ConfigCacheFiles::class,
    ['path' => $path]
);

$configCache = $container->make(ConfigCacheInterface::class);

// or

$container->bind(ConfigCacheInterface::class, ConfigCacheFiles::class);

$configCache = $container->make(ConfigCacheInterface::class, ['path' => $path]);
```

Where `$path` is absolute path to folder with configuration cache files.

Loading config cache
--------------------

[](#loading-config-cache)

```
$loaded = $configCache->load($config, $profile)
```

Loads array of configurations from path given in a constructor. If `$profile` is not set driver will search file with name `config.cache`, in other case name will be `config.given_profile.cache`. If file exists and not expired (this option stored inside file) array of configuration will be loaded to `$config` variable and `true` would be returned as function return value. In all other cases function returns `false` and `$config` variable would be not affected.

Saving config cache
-------------------

[](#saving-config-cache)

```
$configCache->save($config, $profile, $ttl)
```

Saves `$config` array to file (see loading). `$ttl` is time to live for cached data in seconds.

###  Health Score

28

—

LowBetter than 54% of packages

Maintenance20

Infrequent updates — may be unmaintained

Popularity7

Limited adoption so far

Community8

Small or concentrated contributor base

Maturity64

Established project with proven stability

 Bus Factor1

Top contributor holds 96.8% 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 ~188 days

Total

5

Last Release

1909d ago

PHP version history (2 changes)1.0.0PHP ^7.1.3

1.0.2PHP ^7.4

### Community

Maintainers

![](https://avatars.githubusercontent.com/u/46634185?v=4)[opxcore](/maintainers/opxcore)[@opxcore](https://github.com/opxcore)

---

Top Contributors

[![lozovoyv](https://avatars.githubusercontent.com/u/21274927?v=4)](https://github.com/lozovoyv "lozovoyv (30 commits)")[![opxcore](https://avatars.githubusercontent.com/u/46634185?v=4)](https://github.com/opxcore "opxcore (1 commits)")

---

Tags

configcacheopxcore

###  Code Quality

TestsPHPUnit

### Embed Badge

![Health badge](/badges/opxcore-config-cache-files/health.svg)

```
[![Health](https://phpackages.com/badges/opxcore-config-cache-files/health.svg)](https://phpackages.com/packages/opxcore-config-cache-files)
```

###  Alternatives

[psr/simple-cache

Common interfaces for simple caching

8.1k727.3M2.1k](/packages/psr-simple-cache)[psr/cache

Common interface for caching libraries

5.2k686.9M1.3k](/packages/psr-cache)[react/cache

Async, Promise-based cache interface for ReactPHP

444112.4M40](/packages/react-cache)[beste/in-memory-cache

A PSR-6 In-Memory cache that can be used as a fallback implementation and/or in tests.

2512.2M6](/packages/beste-in-memory-cache)[anahkiasen/flatten

A package for the Illuminate framework that flattens pages to plain HTML

33313.0k](/packages/anahkiasen-flatten)[rtcamp/nginx-helper

Cleans nginx's fastcgi/proxy cache or redis-cache whenever a post is edited/published. Also provides cloudflare edge cache purging with Cache-Tags.

23817.0k1](/packages/rtcamp-nginx-helper)

PHPackages © 2026

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