PHPackages                             markguinn/silverstripe-livepub - 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. markguinn/silverstripe-livepub

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

markguinn/silverstripe-livepub
==============================

Adds blocks of raw php to staticpublisher for limited 'live' elements (cookies, sessions, etc).

1.1.0(11y ago)31372[1 PRs](https://github.com/markguinn/silverstripe-livepub/pulls)1MITPHP

Since Feb 26Pushed 10y ago3 watchersCompare

[ Source](https://github.com/markguinn/silverstripe-livepub)[ Packagist](https://packagist.org/packages/markguinn/silverstripe-livepub)[ RSS](/packages/markguinn-silverstripe-livepub/feed)WikiDiscussions master Synced 2mo ago

READMEChangelog (2)Dependencies (1)Versions (3)Used By (1)

LivePub Module
==============

[](#livepub-module)

For Silverstripe Static Publisher
---------------------------------

[](#for-silverstripe-static-publisher)

Adds blocks of raw php to staticpublisher for limited 'live' elements (cookies, sessions, etc).

Requirements
------------

[](#requirements)

- Silverstripe 3.1+ (may work with 3.0, but hasn't been tested)
- Static Publisher module
- Works with Static Publish Queue module

Features
--------

[](#features)

- Allows CSRF tokens to remain enabled with static published sites
- Insert blocks of live php into published pages (must use php publishing method)
- With careful use, allows things like a "logged in as" area or sections based on session or cookie information, without loading any of Silverstripe.

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

[](#installation)

1. `composer require markguinn/silverstripe-livepub dev-master`
2. Follow normal setup for staticpublisher or staticpublishqueue. Keep in mind that you must use php instead of html like so: `Object::add_extension("SiteTree", "LiveFilesystemPublisher('cache/', 'php')");`
3. If you're going to use livepub hooks from templates (a common pattern), add to the LivePubControllerHooks extension to Controller. Like so: `Object::add_extension("Controller", "LivePubControllerHooks");`

TODO
----

[](#todo)

- Docs
- This could be architected better by removing static LivePubHelper and using a singleton pattern with subclasses for "publishing" and "not publishing"

Developer(s)
------------

[](#developers)

- Mark Guinn

Contributions welcome by pull request and/or bug report. Please follow Silverstripe code standards.

License (MIT)
-------------

[](#license-mit)

Copyright (c) 2013 Mark Guinn

Permission is hereby granted, free of charge, to any person obtaining a copy of this software and associated documentation files (the "Software"), to deal in the Software without restriction, including without limitation the rights to use, copy, modify, merge, publish, distribute, sublicense, and/or sell copies of the Software, and to permit persons to whom the Software is furnished to do so, subject to the following conditions:

The above copyright notice and this permission notice shall be included in all copies or substantial portions of the Software.

THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE.

###  Health Score

30

—

LowBetter than 65% of packages

Maintenance20

Infrequent updates — may be unmaintained

Popularity15

Limited adoption so far

Community9

Small or concentrated contributor base

Maturity64

Established project with proven stability

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 ~118 days

Total

2

Last Release

4338d ago

### Community

Maintainers

![](https://www.gravatar.com/avatar/485dfc9fc93cad085c83c3276f19b6e9322ee910ab0e1685de0db42228dbf97b?d=identicon)[markguinn](/maintainers/markguinn)

---

Tags

silverstripecachingstatic publisherliveholes

### Embed Badge

![Health badge](/badges/markguinn-silverstripe-livepub/health.svg)

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

###  Alternatives

[silverstripe/staticpublishqueue

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

45135.4k4](/packages/silverstripe-staticpublishqueue)[tractorcow/silverstripe-dynamiccache

FORK OF Silverstripe module for simple on the fly caching of dynamic content

3916.0k2](/packages/tractorcow-silverstripe-dynamiccache)[pstaender/silverstripe-redis-cache

Enables Redis cache for SilverStripe

1199.1k](/packages/pstaender-silverstripe-redis-cache)[silverstripe-australia/simplecache

Simple(r) caching abstraction layer, with a static publisher that will use that cache layer for storage

146.8k](/packages/silverstripe-australia-simplecache)[silverstripe-terraformers/keys-for-cache

Silverstripe cache key management

1726.6k](/packages/silverstripe-terraformers-keys-for-cache)[steadlane/silverstripe-cloudflare

This module aims to relieve the stress of using Cloudflare caching with any SilverStripe project. Adds extension hooks that clears Cloudflare's cache for a specific page when that page is published or unpublished.

243.7k](/packages/steadlane-silverstripe-cloudflare)

PHPackages © 2026

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