PHPackages                             pavlikm/cache-html-part - 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. pavlikm/cache-html-part

ActiveLibrary[Caching](/categories/caching)

pavlikm/cache-html-part
=======================

cache part of html in browser

1.0.1(5y ago)113PHP

Since Mar 15Pushed 5y ago1 watchersCompare

[ Source](https://github.com/pavlikm/cache-html-part-php)[ Packagist](https://packagist.org/packages/pavlikm/cache-html-part)[ RSS](/packages/pavlikm-cache-html-part/feed)WikiDiscussions master Synced today

READMEChangelog (2)DependenciesVersions (3)Used By (0)

cache-html-part
===============

[](#cache-html-part)

**cache-html-part** is simple library, that can "stash" any static content of your page in client browser, so any other requests to the same page (or different page with same static element) will consume less data and will be rendered faster.

**cache-html-part** saves your bandwidth and reduce load speed with caching some parts of rendered html.

install
-------

[](#install)

```
composer require pavlikm/cache-html-part

```

use
---

[](#use)

Use cache-html-part in php

```
use pavlikm\CacheHtmlPart;

```

and mark any static part of your page with html comment `\` and ``:

```

This div will be transfered from server again and again and again... even if is still the same...

But this div will be transfered only once! Next time browser will render it by self.

```

cache-html-part and SEO
-----------------------

[](#cache-html-part-and-seo)

**cache-html-part** will not affect any SEO bots and crawlers. It use html comments which are "invisible" for bots.

###  Health Score

24

—

LowBetter than 32% of packages

Maintenance20

Infrequent updates — may be unmaintained

Popularity7

Limited adoption so far

Community7

Small or concentrated contributor base

Maturity54

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

2

Last Release

1882d ago

### Community

Maintainers

![](https://avatars.githubusercontent.com/u/78898602?v=4)[Michal Pavlik](/maintainers/pavlikm)[@pavlikm](https://github.com/pavlikm)

---

Top Contributors

[![pavlikm](https://avatars.githubusercontent.com/u/78898602?v=4)](https://github.com/pavlikm "pavlikm (2 commits)")

---

Tags

htmlcache

### Embed Badge

![Health badge](/badges/pavlikm-cache-html-part/health.svg)

```
[![Health](https://phpackages.com/badges/pavlikm-cache-html-part/health.svg)](https://phpackages.com/packages/pavlikm-cache-html-part)
```

###  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)[silverstripe/staticpublishqueue

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

45135.4k4](/packages/silverstripe-staticpublishqueue)[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)

PHPackages © 2026

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