PHPackages                             adrianmomorales/sage-svg-sage9-php8 - 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. adrianmomorales/sage-svg-sage9-php8

ActivePackage[Templating &amp; Views](/categories/templating)

adrianmomorales/sage-svg-sage9-php8
===================================

WordPress package to enable a blade directive to use SVG images inline with Sage 9

1.0.0(1y ago)042MITPHP

Since Jan 16Pushed 1y agoCompare

[ Source](https://github.com/adrianmomorales/sage-svg-sage9-php8)[ Packagist](https://packagist.org/packages/adrianmomorales/sage-svg-sage9-php8)[ Docs](https://github.com/josh-taylor)[ RSS](/packages/adrianmomorales-sage-svg-sage9-php8/feed)WikiDiscussions master Synced 1mo ago

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

Sage SVG
========

[](#sage-svg)

Easily use SVG images in your [Sage 9](https://roots.io/sage) Blade templates.

This repository is a wrapper for Adam Wathan's [Blade SVG](https://github.com/adamwathan/blade-svg) for Laravel, so a lot of the concepts from that repository are the same.

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

[](#installation)

You can install this package via Composer by running this command in the root of your Sage 9 installation.

```
composer require josh-taylor/sage-svg

```

Getting Started
---------------

[](#getting-started)

The package will automatically register a blade directive to inline your SVGs.

Place all your SVGs inside `resources/assets/icons` in your Sage 9 installation and you are good to go. **Recommend to run all your SVGs through [SVGO](https://jakearchibald.github.io/svgomg/) first!**

```

    @svg('cog', 'icon-lg') Settings

```

For more advanced usage you can check out [Adam's](https://github.com/adamwathan/blade-svg) repository.

The only thing this libary does not support at the moment is non-inline SVG. But this is [better](https://css-tricks.com/pretty-good-svg-icon-system/) anyway right?

Credits
-------

[](#credits)

Most of the work of this repository is down to Adam Wathan. This is just a wrapper to get it work with Sage 9 blade templates.

###  Health Score

26

—

LowBetter than 43% of packages

Maintenance42

Moderate activity, may be stable

Popularity8

Limited adoption so far

Community8

Small or concentrated contributor base

Maturity38

Early-stage or recently created project

 Bus Factor1

Top contributor holds 87.5% 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

481d ago

### Community

Maintainers

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

---

Top Contributors

[![adrianmomorales](https://avatars.githubusercontent.com/u/7737385?v=4)](https://github.com/adrianmomorales "adrianmomorales (7 commits)")[![josh-taylor](https://avatars.githubusercontent.com/u/675003?v=4)](https://github.com/josh-taylor "josh-taylor (1 commits)")

---

Tags

wordpress

### Embed Badge

![Health badge](/badges/adrianmomorales-sage-svg-sage9-php8/health.svg)

```
[![Health](https://phpackages.com/badges/adrianmomorales-sage-svg-sage9-php8/health.svg)](https://phpackages.com/packages/adrianmomorales-sage-svg-sage9-php8)
```

###  Alternatives

[roots/acorn

Framework for Roots WordPress projects built with Laravel components.

9682.1M97](/packages/roots-acorn)[gamajo/template-loader

A class for your WordPress plugin, to allow loading template parts with fallback through the child theme &gt; parent theme &gt; plugin

29647.0k5](/packages/gamajo-template-loader)[hexbit/sage-woocommerce

Woocommerce support for sage 10

257.0k](/packages/hexbit-sage-woocommerce)[frozzare/digster

Twig templates for WordPress

107.1k](/packages/frozzare-digster)

PHPackages © 2026

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