PHPackages                             scullwm/swmcache-twig-extension - 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. scullwm/swmcache-twig-extension

ActiveLibrary[Caching](/categories/caching)

scullwm/swmcache-twig-extension
===============================

Flat Cache part of your content in Twig. Perfect to reduce render() gen time. Twig cache extension that work without dependency.

260PHP

Since Jan 20Pushed 12y ago1 watchersCompare

[ Source](https://github.com/ScullWM/SwmCache-Twig-Extension)[ Packagist](https://packagist.org/packages/scullwm/swmcache-twig-extension)[ RSS](/packages/scullwm-swmcache-twig-extension/feed)WikiDiscussions master Synced 2w ago

READMEChangelogDependenciesVersions (2)Used By (0)

SwmCache-Twig-Extension
=======================

[](#swmcache-twig-extension)

Flat Cache part of your content in Twig. Perfect to reduce render() gen time. Twig cache extension that work without dependency.

[![Total Downloads](https://camo.githubusercontent.com/4306f4804a888d340986b52014dab72e2e21edff3350a4fe8b05c65c702cf96d/68747470733a2f2f706f7365722e707567782e6f72672f7363756c6c776d2f73776d63616368652d747769672d657874656e73696f6e2f646f776e6c6f6164732e706e67)](https://packagist.org/packages/scullwm/swmcache-twig-extension)

Why
---

[](#why)

Couldn't find a simple twig cache extension that don't need many libs. Here it just use the Twig Cache Folder

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

[](#installation)

The extension is installable via composer:

```
{
    "require": {
        "scullwm/swmcache-twig-extension": "dev-master"
    }
}
```

Usage
-----

[](#usage)

```

```

How to use ?
------------

[](#how-to-use-)

```
    {% swmcache 'ephemeride' '3600' %}
        {{ render(url('page_ephemeride')) }}
    {% endswmcache %}
```

Todo
----

[](#todo)

- Write tests

###  Health Score

22

—

LowBetter than 21% of packages

Maintenance20

Infrequent updates — may be unmaintained

Popularity11

Limited adoption so far

Community7

Small or concentrated contributor base

Maturity43

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.

### Community

Maintainers

![](https://www.gravatar.com/avatar/4a27e3236ea45c2a93f2ef189f37c0c72bfab70f6d73714d396456c6e3d3c25c?d=identicon)[ScullWM](/maintainers/ScullWM)

---

Top Contributors

[![ScullWM](https://avatars.githubusercontent.com/u/1017746?v=4)](https://github.com/ScullWM "ScullWM (23 commits)")

### Embed Badge

![Health badge](/badges/scullwm-swmcache-twig-extension/health.svg)

```
[![Health](https://phpackages.com/badges/scullwm-swmcache-twig-extension/health.svg)](https://phpackages.com/packages/scullwm-swmcache-twig-extension)
```

###  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)[phpfastcache/phpssdb

PHP SSDB Driver for phpFastCache

14736.9k1](/packages/phpfastcache-phpssdb)

PHPackages © 2026

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