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. toastnz/svg

ActiveSilverstripe-vendormodule

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

A skeleton for Silverstripe CMS modules.

5.x-dev(2y ago)05.5k↑83.3%BSD-3-ClausePHPCI failing

Since Jun 27Pushed 8mo ago2 watchersCompare

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

READMEChangelogDependencies (4)Versions (3)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

28

—

LowBetter than 54% of packages

Maintenance42

Moderate activity, may be stable

Popularity22

Limited adoption so far

Community8

Small or concentrated contributor base

Maturity31

Early-stage or recently created project

 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

Unknown

Total

1

Last Release

1057d ago

### 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

5163.4M1.3k](/packages/silverstripe-cms)

PHPackages © 2026

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