PHPackages                             marko/page-cache-entity - 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. marko/page-cache-entity

ActiveMarko-module[Caching](/categories/caching)

marko/page-cache-entity
=======================

Marko bridge package that auto-purges page-cache tags when entities implementing IdentityInterface are saved or deleted.

0.7.0(4w ago)00MITPHPPHP ^8.5

Since May 12Pushed 6d agoCompare

[ Source](https://github.com/marko-php/marko-page-cache-entity)[ Packagist](https://packagist.org/packages/marko/page-cache-entity)[ RSS](/packages/marko-page-cache-entity/feed)WikiDiscussions main Synced 1w ago

READMEChangelogDependencies (5)Versions (5)Used By (0)

marko/page-cache-entity
=======================

[](#markopage-cache-entity)

Bridge package that auto-purges page-cache tags when entities implementing `IdentityInterface` are saved or deleted.

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

[](#installation)

```
composer require marko/page-cache-entity
```

Quick Example
-------------

[](#quick-example)

```
use Marko\Database\Entity\Entity;
use Marko\PageCache\Contracts\IdentityInterface;

class Product extends Entity implements IdentityInterface
{
    public function getIdentities(): array
    {
        return ['products', "product-{$this->id}"];
    }
}
```

Saving or deleting the entity purges the listed cache tags automatically --- no extra wiring needed.

Documentation
-------------

[](#documentation)

Full usage, API reference, and examples: [marko/page-cache-entity](https://marko.build/docs/packages/page-cache-entity/)

###  Health Score

39

—

LowBetter than 84% of packages

Maintenance97

Actively maintained with recent releases

Popularity0

Limited adoption so far

Community8

Small or concentrated contributor base

Maturity44

Maturing project, gaining track record

 Bus Factor1

Top contributor holds 50% 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 ~0 days

Total

3

Last Release

28d ago

### Community

Maintainers

![](https://avatars.githubusercontent.com/u/437029?v=4)[Mark Shust](/maintainers/markshust)[@markshust](https://github.com/markshust)

---

Top Contributors

[![markshust](https://avatars.githubusercontent.com/u/437029?v=4)](https://github.com/markshust "markshust (1 commits)")[![michalbiarda](https://avatars.githubusercontent.com/u/1135380?v=4)](https://github.com/michalbiarda "michalbiarda (1 commits)")

###  Code Quality

TestsPest

### Embed Badge

![Health badge](/badges/marko-page-cache-entity/health.svg)

```
[![Health](https://phpackages.com/badges/marko-page-cache-entity/health.svg)](https://phpackages.com/packages/marko-page-cache-entity)
```

PHPackages © 2026

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