PHPackages                             neoan3-apps/cache - 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. neoan3-apps/cache

ActiveLibrary[Caching](/categories/caching)

neoan3-apps/cache
=================

Caching based on output buffer

0381PHP

Since Dec 14Pushed 5y agoCompare

[ Source](https://github.com/sroehrl/neoan3-cache)[ Packagist](https://packagist.org/packages/neoan3-apps/cache)[ RSS](/packages/neoan3-apps-cache/feed)WikiDiscussions master Synced 4w ago

READMEChangelogDependenciesVersions (2)Used By (1)

neoan3 caching app
==================

[](#neoan3-caching-app)

This class will utilize the output buffer to establish basic caching. This is especially useful if you render static pages server-side after computational procedures.

Installation
------------

[](#installation)

`composer require neoan3-apps/cache`

### Usage

[](#usage)

1. Set caching as early as possible during execution. In neoan3, the construct of the used frame is ideal.

    ```
    function __construct() {
        Neoan3\Apps\Cache::setCaching('-2 hours');
        parent::__construct();
    }
    ```
2. Write the output after rendering your application. In a neoan3 frame:

    ```
    // overwrite output method
    function output($params = []) {
        parent::output($params);
        Neoan3\Apps\Cache::write();
    }
    ```

Methods
-------

[](#methods)

### setCaching

[](#setcaching)

`Neoan3\Apps\Cache::setCaching( strtotime-expression, ['fileEnding'] )`

The first parameter expresses the lifetime of the cached file. Use a negative strtotime-expression. The second parameter overwrites the default value `['Controller.php']`, which holds values controlling what strings must be included in file-names for the files to be cached.

### write

[](#write)

`Neoan3\Apps\Cache::write()`

Writes the output buffer to a cached file in the respective component.

### invalidate

[](#invalidate)

`Neoan3\Apps\Cache::invalidate( string )`

Takes the name of a component folder as string to delete all cache-files of a particular component.

### invalidateAll

[](#invalidateall)

`Neoan3\Apps\Cache::invalidateAll()`

Clears all cache-files in the project.

###  Health Score

19

—

LowBetter than 9% of packages

Maintenance20

Infrequent updates — may be unmaintained

Popularity7

Limited adoption so far

Community8

Small or concentrated contributor base

Maturity34

Early-stage or recently created project

 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.

### Community

Maintainers

![](https://www.gravatar.com/avatar/92d2361b646651e3452a62d07274076346c4096480098a6c43d6c27ee28d460d?d=identicon)[neoan](/maintainers/neoan)

---

Top Contributors

[![sroehrl](https://avatars.githubusercontent.com/u/28542911?v=4)](https://github.com/sroehrl "sroehrl (5 commits)")

### Embed Badge

![Health badge](/badges/neoan3-apps-cache/health.svg)

```
[![Health](https://phpackages.com/badges/neoan3-apps-cache/health.svg)](https://phpackages.com/packages/neoan3-apps-cache)
```

###  Alternatives

[iazaran/smart-cache

Smart Cache is a caching optimization package designed to enhance the way your Laravel application handles data caching. It intelligently manages large data sets by compressing, chunking, or applying other optimization strategies to keep your application performant and efficient.

21114.2k](/packages/iazaran-smart-cache)

PHPackages © 2026

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