yiirocks/svg-inline

Inline SVG Images for Yii

Maintainers

Package info

github.com/YiiRocks/svg-inline

Homepage

pkg:composer/yiirocks/svg-inline

Transparency log

Fund package maintenance!

YiiRocks

Statistics

Installs: 1 652

Dependents: 2

Suggesters: 0

Stars: 2

Open Issues: 0

2.0.1 2026-08-07 09:54 UTC

This package is auto-updated.

Last update: 2026-08-17 11:12:28 UTC


README

inline
/ˈɪnlʌɪn/
adjective

included as part of the main text on a page, rather than in a separate section

This extension provides simple functions for Yii framework 3.0 applications to add SVG Images inline.

Packagist Version PHP from Packagist Packagist GitHub GitHub Workflow Status

Stats for Nerds

Coverage MSI Tests Assertions

Installation

composer require yiirocks/svg-inline

It can be extended with Bootstrap Icons and/or Font Awesome Icons:

composer require yiirocks/svg-inline-bootstrap
composer require yiirocks/svg-inline-fontawesome

Usage

The default configuration will enable $svg in any view.

echo $svg->file('@assets/image.svg');

The complete reference guide is available at Yii.Rocks.