PHPackages                             staticize/staticize - 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. staticize/staticize

ActiveLibrary[Caching](/categories/caching)

staticize/staticize
===================

Put php outputbuffer into cache

0.1.3(7y ago)135MITPHPPHP &gt;=5.6.0

Since Jun 4Pushed 7y ago1 watchersCompare

[ Source](https://github.com/cunheise/staticize)[ Packagist](https://packagist.org/packages/staticize/staticize)[ Docs](https://github.com/cunheise/staticize.git)[ RSS](/packages/staticize-staticize/feed)WikiDiscussions master Synced 4d ago

READMEChangelog (4)Dependencies (3)Versions (5)Used By (0)

Staticize
=========

[](#staticize)

This is library can put php output buffer content into cache like redis, memcache, filesystem, and so on.

install
-------

[](#install)

```
composer require staticize/staticize

```

Have Question or Feedback?
--------------------------

[](#have-question-or-feedback)

if you have any question or feedback, contact me Q:26441530 or cunheise \[at\] 163.com

sample
------

[](#sample)

### bootstrap.php file

[](#bootstrapphp-file)

```
require dirname(__DIR__) . '/vendor/autoload.php';

use Pimple\Container;
use Staticize\Page;
use Symfony\Component\Cache\Simple\FilesystemCache;

$container = new Container();
$container['namespace'] = 'namespace';
$container['lifetime'] = 1;
$container['directory'] = dirname(__DIR__) . '/runtime';
$container['cache'] = function ($c) {
    return new FilesystemCache($c['namespace'], $c['lifetime'], $c['directory']);
};
$container['page'] = function ($c) {
    return new Page($c['pagename'], $c['cache']);
};

```

### start\_end.php sample file

[](#start_endphp-sample-file)

```
require __DIR__ . '/bootstrap.php';
$container['pagename'] = 'start_end.html';
if (!$container['page']->isValid()) {
    $container['page']->start();
    echo 'start end page';
    $container['page']->end();
}
echo $container['page'];

```

### enclose.php sample file

[](#enclosephp-sample-file)

```
require __DIR__ . '/bootstrap.php';
$container['pagename'] = 'enclose.html';
if (!$container['page']->isValid()) {
    $container['page']->enclose(function () {
        echo 'enclose page test';
    });
}
echo $container['page'];

```

License
-------

[](#license)

Copyright 2008-2018.

Licensed under the [GNU Lesser General Public License, Version 3.0](https://www.gnu.org/licenses/lgpl.txt)

###  Health Score

24

—

LowBetter than 32% of packages

Maintenance20

Infrequent updates — may be unmaintained

Popularity9

Limited adoption so far

Community7

Small or concentrated contributor base

Maturity51

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

4

Last Release

2900d ago

### Community

Maintainers

![](https://www.gravatar.com/avatar/9aa8e3bdf444f271736905e186e9c7bb5c8a820fad4630306f386ad994ed7278?d=identicon)[nathanwu](/maintainers/nathanwu)

---

Top Contributors

[![cunheise](https://avatars.githubusercontent.com/u/1112325?v=4)](https://github.com/cunheise "cunheise (9 commits)")

---

Tags

staticpage cacheoutputbuffer

###  Code Quality

TestsPHPUnit

### Embed Badge

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

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

###  Alternatives

[lochmueller/staticfilecache

Transparent static file cache solution using mod\_rewrite and mod\_expires. Increase performance for static pages by a factor of 230!!

1311.3M3](/packages/lochmueller-staticfilecache)[putyourlightson/craft-blitz

Intelligent static page caching for creating lightning-fast sites.

153471.5k29](/packages/putyourlightson-craft-blitz)[silverstripe/staticpublishqueue

Static publishing queue to create static versions of pages for enhanced performance and security

45135.4k4](/packages/silverstripe-staticpublishqueue)[mmamedov/page-cache

PageCache is a lightweight PHP library for full page cache. It uses various strategies to differentiate among separate versions of the same page.

7912.7k1](/packages/mmamedov-page-cache)[rikudou/psr6-dynamo-db-bundle

PSR-6 and PSR-16 cache implementation using AWS DynamoDB for Symfony

2077.8k](/packages/rikudou-psr6-dynamo-db-bundle)

PHPackages © 2026

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