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

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

jamesbwi/blade-svg
==================

Embed SVGs in Laravel Blade.

0.1.5(2y ago)1885↓50%MITPHPPHP ^7.4|^8.0

Since Apr 14Pushed 2y ago1 watchersCompare

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

READMEChangelogDependencies (3)Versions (10)Used By (0)

Laravel Blade SVGs
==================

[](#laravel-blade-svgs)

[![Latest Version on Packagist](https://camo.githubusercontent.com/de7a21d3d839bc899f6ba1ecc03abc7c725f8c85ccf6ae98d4a55b1b1ffdbae0/68747470733a2f2f696d672e736869656c64732e696f2f7061636b61676973742f762f6a616d65736277692f626c6164652d7376672e7376673f7374796c653d666c61742d737175617265)](https://packagist.org/packages/jamesbwi/blade-svg)[![Total Downloads](https://camo.githubusercontent.com/1bba557ac209da5c68915312c8dd98382a2da0e882c6816790bf667e085a7776/68747470733a2f2f696d672e736869656c64732e696f2f7061636b61676973742f64742f6a616d65736277692f626c6164652d7376672e7376673f7374796c653d666c61742d737175617265)](https://packagist.org/packages/jamesbwi/blade-svg)

This package allows for easy use and manipulation of svg files within your laravel project.

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

[](#installation)

You can install the package via composer:

```
composer require jamesbwi/blade-svg
```

Usage
-----

[](#usage)

To insert an SVG file, simply use the following component:

```

```

You can pass any attribute into the component as if it were an inline svg:

```

```

### &lt;use&gt; tags

[](#use-tags)

If you wish to utilise the SVG &lt;use&gt; tags this package simplifies the process.
The following component will embed the SVG into an &lt;element&gt; tag with the specified attributes:

```

```

The element (or any other SVG with an id) can then be referenced with the following tag:

```

```

You can add any attribute to the &lt;use&gt; tag:

```

```

External sources can be referenced too:

```

```

### Changelog

[](#changelog)

Please see [CHANGELOG](CHANGELOG.md) for more information what has changed recently.

Contributing
------------

[](#contributing)

Please see [CONTRIBUTING](CONTRIBUTING.md) for details.

### Security

[](#security)

If you discover any security related issues, please email  instead of using the issue tracker.

Credits
-------

[](#credits)

- [James Smillie](https://github.com/jamesbwi)
- [All Contributors](../../contributors)

License
-------

[](#license)

The MIT License (MIT). Please see [License File](LICENSE.md) for more information.

Laravel Package Boilerplate
---------------------------

[](#laravel-package-boilerplate)

This package was generated using the [Laravel Package Boilerplate](https://laravelpackageboilerplate.com).

###  Health Score

26

—

LowBetter than 43% of packages

Maintenance20

Infrequent updates — may be unmaintained

Popularity17

Limited adoption so far

Community7

Small or concentrated contributor base

Maturity49

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

Recently: every ~102 days

Total

8

Last Release

1056d ago

### Community

Maintainers

![](https://www.gravatar.com/avatar/1c5af772311dc72ad14d751edb52bc12e7167406e0835883888709d55cc784fe?d=identicon)[jamesbwi](/maintainers/jamesbwi)

---

Top Contributors

[![jamesbwi](https://avatars.githubusercontent.com/u/89970338?v=4)](https://github.com/jamesbwi "jamesbwi (27 commits)")

---

Tags

laravelsvgbladeBlade componentblade-svgsvg component

###  Code Quality

TestsPHPUnit

### Embed Badge

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

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

###  Alternatives

[blade-ui-kit/blade-icons

A package to easily make use of icons in your Laravel Blade views.

2.5k34.2M309](/packages/blade-ui-kit-blade-icons)[robsontenorio/mary

Gorgeous UI components for Livewire powered by daisyUI and Tailwind

1.5k454.7k15](/packages/robsontenorio-mary)[stijnvanouplines/blade-country-flags

A package to easily make use of country flags in your Laravel Blade views.

26307.2k6](/packages/stijnvanouplines-blade-country-flags)

PHPackages © 2026

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