PHPackages                             josh-taylor/sage-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. josh-taylor/sage-svg

ActivePackage[Utility &amp; Helpers](/categories/utility)

josh-taylor/sage-svg
====================

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

0.2.0(7y ago)1846.3k5MITPHP

Since Jun 27Pushed 7y ago1 watchersCompare

[ Source](https://github.com/josh-taylor/sage-svg)[ Packagist](https://packagist.org/packages/josh-taylor/sage-svg)[ Docs](https://github.com/josh-taylor)[ RSS](/packages/josh-taylor-sage-svg/feed)WikiDiscussions master Synced 6d ago

READMEChangelog (2)Dependencies (1)Versions (3)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

33

—

LowBetter than 72% of packages

Maintenance20

Infrequent updates — may be unmaintained

Popularity35

Limited adoption so far

Community10

Small or concentrated contributor base

Maturity54

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

Total

2

Last Release

2864d ago

### Community

Maintainers

![](https://www.gravatar.com/avatar/8e90bb8326f039d305035461e206f1d05cbc2887de66586ca9f755905b4cd660?d=identicon)[josh-taylor](/maintainers/josh-taylor)

---

Top Contributors

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

---

Tags

composer-packagesagesvgsvg-iconswordpresswordpress-packagistwordpress

### Embed Badge

![Health badge](/badges/josh-taylor-sage-svg/health.svg)

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

###  Alternatives

[tgmpa/tgm-plugin-activation

TGM Plugin Activation is a PHP library that allows you to easily require or recommend plugins for your WordPress themes (and plugins).

1.8k230.2k13](/packages/tgmpa-tgm-plugin-activation)[aristath/kirki

Extending the WordPress customizer

1.3k73.1k4](/packages/aristath-kirki)[afragen/git-updater

A plugin to automatically update GitHub, Bitbucket, GitLab, or Gitea hosted plugins, themes, and language packs.

3.3k1.7k](/packages/afragen-git-updater)[tacowordpress/tacowordpress

WordPress custom post types that feel like CRUD models

232.2k](/packages/tacowordpress-tacowordpress)

PHPackages © 2026

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