PHPackages                             toastnz/svg - 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. [Utility &amp; Helpers](/categories/utility)
4. /
5. toastnz/svg

ActiveSilverstripe-vendormodule[Utility &amp; Helpers](/categories/utility)

toastnz/svg
===========

A skeleton for Silverstripe CMS modules.

6.0(10mo ago)06.1k↑93.3%BSD-3-ClausePHPCI failing

Since Jun 27Pushed 2mo ago2 watchersCompare

[ Source](https://github.com/toastnz/svg)[ Packagist](https://packagist.org/packages/toastnz/svg)[ RSS](/packages/toastnz-svg/feed)WikiDiscussions main Synced 3d ago

READMEChangelog (1)Dependencies (8)Versions (4)Used By (0)

SilverStripe SVG Variable Module
================================

[](#silverstripe-svg-variable-module)

This module enables the usage of the `$SVG('SVG_FILE_NAME')` variable in SilverStripe templates and block templates. It allows you to easily include SVG files within your templates by referencing their file names.

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

[](#installation)

To install this module, you can use Composer:

```
composer require toastnz/svg
```

Configuration
-------------

[](#configuration)

To set up the module, you need to specify the svg\_base\_path under the Page class in your YAML configuration file (app/\_config/config.yml).

```
Page:
  svg_base_path: '/path/to/svg-folder/'

```

Make sure to replace '/path/to/svg-folder/' with the actual path to your SVG files.

Usage
=====

[](#usage)

Once the module is installed and configured, you can use the $SVG('SVG\_FILE\_NAME') variable in your SilverStripe templates. Here's an example of how to include an SVG file:

```
$SVG('logo')

```

###  Health Score

40

—

FairBetter than 86% of packages

Maintenance72

Regular maintenance activity

Popularity23

Limited adoption so far

Community8

Small or concentrated contributor base

Maturity46

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

Total

2

Last Release

311d ago

Major Versions

5.x-dev → 6.02025-08-28

### Community

Maintainers

![](https://www.gravatar.com/avatar/9cc41858b7e0e95f7c9ff396fc2d454339424c425d8f78aeb526434da6f61543?d=identicon)[priscilla-toastnz](/maintainers/priscilla-toastnz)

---

Top Contributors

[![priscillay-toast](https://avatars.githubusercontent.com/u/92568971?v=4)](https://github.com/priscillay-toast "priscillay-toast (10 commits)")

---

Tags

silverstripecms

###  Code Quality

TestsPHPUnit

Code StylePHP\_CodeSniffer

### Embed Badge

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

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

###  Alternatives

[silverstripe/cms

The SilverStripe Content Management System

5253.6M1.4k](/packages/silverstripe-cms)[symbiote/silverstripe-advancedworkflow

Adds configurable workflow support to the CMS, with a GUI for creating custom workflow definitions.

46302.4k9](/packages/symbiote-silverstripe-advancedworkflow)[sunnysideup/typography

Add a typography test page to your silverstripe website / application.

124.4k4](/packages/sunnysideup-typography)

PHPackages © 2026

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