PHPackages                             artack/svg-inline-bundle - 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. artack/svg-inline-bundle

ActiveSymfony-bundle[Templating &amp; Views](/categories/templating)

artack/svg-inline-bundle
========================

1.2.0(1y ago)2227MITPHPPHP ^8.1

Since Jul 23Pushed 1y agoCompare

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

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

artack/svg-inline-bundle
========================

[](#artacksvg-inline-bundle)

> Twig function to embed svg files as inline svg code into your html code.

[![Latest Release](https://camo.githubusercontent.com/980d7560f1e8a4bcbe268c53441294805bd97e44c75c6eb5aef7e7f24453ffc0/68747470733a2f2f696d672e736869656c64732e696f2f7061636b61676973742f762f61727461636b2f7376672d696e6c696e652d62756e646c652e737667)](https://packagist.org/packages/artack/svg-inline-bundle)[![MIT License](https://camo.githubusercontent.com/fdb1eae6d9108a1e3bd4417332e454f9dd48f46f7cdbb6ff8c4aa3a87cc00024/68747470733a2f2f696d672e736869656c64732e696f2f7061636b61676973742f6c2f61727461636b2f7376672d696e6c696e652d62756e646c652e737667)](http://opensource.org/licenses/MIT)[![Total Downloads](https://camo.githubusercontent.com/d871a692fd1b12ed2160694633d286832ea5c30154e0fbee9bf07979b82f0d97/68747470733a2f2f696d672e736869656c64732e696f2f7061636b61676973742f64742f61727461636b2f7376672d696e6c696e652d62756e646c652e737667)](https://packagist.org/packages/artack/svg-inline-bundle)

Developed by [artack](https://www.artack.ch) in Zurich, Switzerland.

Features
--------

[](#features)

- Provides twig function to embed svg files as inline svg code into your html code
- Compatible with PHP &gt;= 8.1.
- Compatible with Symfony &gt;= 6.1 (including 7).

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

[](#installation)

You can install this bundle through [Composer](https://getcomposer.org):

```
$ composer require artack/svg-inline-bundle
```

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

[](#configuration)

Register the bundle in your `config/bundles.php` file.

```
return [
    ...
    Artack\SvgInlineBundle\SvgInlineBundle::class => ['all' => true],
    ...
];
```

Create the configuration file in your `config/packages/artack_svg_inline.yaml` to define the base path for the svg files.

```
svg_inline:
    path: "%kernel.project_dir%/assets/ci/icon"
```

Usage
-----

[](#usage)

Load a svg file as inline svg code into your html code:

```
# some/template.html.twig
{{ svg_inline('twitter.svg') }}
```

If you want to add classes to the svg tag you can use the `class` parameter:

```
# some/template.html.twig
{{ svg_inline('twitter.svg', class: 'add as many classes as you want') }}
```

###  Health Score

32

—

LowBetter than 72% of packages

Maintenance38

Infrequent updates — may be unmaintained

Popularity14

Limited adoption so far

Community6

Small or concentrated contributor base

Maturity59

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

Total

4

Last Release

543d ago

### Community

Maintainers

![](https://www.gravatar.com/avatar/3a960d5235efdb31dc5e6266966529a26f2ee271978555895a7a7119a74455b7?d=identicon)[scube](/maintainers/scube)

---

Top Contributors

[![plandolt](https://avatars.githubusercontent.com/u/922919?v=4)](https://github.com/plandolt "plandolt (9 commits)")

---

Tags

svgsymfonysymfony-bundletwigtwig-extension

### Embed Badge

![Health badge](/badges/artack-svg-inline-bundle/health.svg)

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

###  Alternatives

[sylius/sylius

E-Commerce platform for PHP, based on Symfony framework.

8.4k5.6M651](/packages/sylius-sylius)[easycorp/easyadmin-bundle

Admin generator for Symfony applications

4.3k16.7M310](/packages/easycorp-easyadmin-bundle)[shopware/platform

The Shopware e-commerce core

3.3k1.5M3](/packages/shopware-platform)[sulu/sulu

Core framework that implements the functionality of the Sulu content management system

1.3k1.3M152](/packages/sulu-sulu)[prestashop/prestashop

PrestaShop is an Open Source e-commerce platform, committed to providing the best shopping cart experience for both merchants and customers.

9.0k15.4k](/packages/prestashop-prestashop)[contao/core-bundle

Contao Open Source CMS

1231.6M2.4k](/packages/contao-core-bundle)

PHPackages © 2026

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