PHPackages                             heyday/silverstripe-templatehelpers - 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. [Templating &amp; Views](/categories/templating)
4. /
5. heyday/silverstripe-templatehelpers

ActiveSilverstripe-vendormodule[Templating &amp; Views](/categories/templating)

heyday/silverstripe-templatehelpers
===================================

Simple template functionality for Silverstripe

3.0.0(2y ago)56.8k—0%2MITPHP

Since Jun 17Pushed 2y ago25 watchersCompare

[ Source](https://github.com/heyday/silverstripe-templatehelpers)[ Packagist](https://packagist.org/packages/heyday/silverstripe-templatehelpers)[ Docs](https://www.akqa.com)[ RSS](/packages/heyday-silverstripe-templatehelpers/feed)WikiDiscussions main Synced 1mo ago

READMEChangelog (4)DependenciesVersions (17)Used By (0)

SilverStripe template helpers
=============================

[](#silverstripe-template-helpers)

A library with common functionality used by SilverStripe template developers.

Installation (with composer)
============================

[](#installation-with-composer)

```
$ composer require heyday/silverstripe-templatehelpers

```

Usage
=====

[](#usage)

Once installed, the following functions are available in any .ss template:

- **`$isDev`** - If the site is running in a development environment
- **`$isTest`** - If the site is running in a test environment
- **`$isLive`** - If the site is running in a production environment
- **`$ImagePath('my-image.png')`** - Build an image path based on config for the current environment
- **`$addInlineScript('/path/in/theme/directory/file.js')`** - include a javascript file verbatim in the template (note that `` tags aren't generated automatically, so you'll need to add those around this call).

`$ImagePath` config
-------------------

[](#imagepath-config)

The image path helper defaults to `themes/[theme]/images/`. The path within the theme directory can be configured in your project's YAML config:

```
TemplateHelpers:
  dev_images: source/images
  prod_images: production/images
```

###  Health Score

37

—

LowBetter than 83% of packages

Maintenance20

Infrequent updates — may be unmaintained

Popularity28

Limited adoption so far

Community18

Small or concentrated contributor base

Maturity71

Established project with proven stability

 Bus Factor2

2 contributors hold 50%+ of commits

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

Recently: every ~547 days

Total

16

Last Release

1035d ago

Major Versions

0.1.x-dev → 1.0.02013-06-22

0.2.x-dev → 2.0.02017-07-19

2.1.1 → 3.0.02023-07-19

### Community

Maintainers

![](https://www.gravatar.com/avatar/de4d8d61f202a03e88c3ed30cce3bfedbc6f56a16e3f3b25546c61aadc51bca2?d=identicon)[heyday](/maintainers/heyday)

---

Top Contributors

[![camspiers](https://avatars.githubusercontent.com/u/51294?v=4)](https://github.com/camspiers "camspiers (7 commits)")[![stecman](https://avatars.githubusercontent.com/u/2230769?v=4)](https://github.com/stecman "stecman (5 commits)")[![wilr](https://avatars.githubusercontent.com/u/101629?v=4)](https://github.com/wilr "wilr (4 commits)")[![oieduardorabelo](https://avatars.githubusercontent.com/u/829902?v=4)](https://github.com/oieduardorabelo "oieduardorabelo (2 commits)")

---

Tags

silverstripetemplate

### Embed Badge

![Health badge](/badges/heyday-silverstripe-templatehelpers/health.svg)

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

###  Alternatives

[pug-php/pug

HAML-like template engine for PHP

393383.2k54](/packages/pug-php-pug)[silverstripe/login-forms

A collection of templates for the CMS login screens

191.3M26](/packages/silverstripe-login-forms)[stevie-mayhew/silverstripe-svg

Basic SVG support for SilverStripe

23326.5k4](/packages/stevie-mayhew-silverstripe-svg)[silverstripe-themes/simple

The SilverStripe simple theme (default SilverStripe 3 theme)

411.3M8](/packages/silverstripe-themes-simple)[symbiote/silverstripe-listingpage

A module that allows CMS users to create templated listing pages.

1012.7k2](/packages/symbiote-silverstripe-listingpage)

PHPackages © 2026

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