yiirocks/svg-inline Inline SVG Images for Yii

Inline SVG Images for Yii

  1. Installation
  2. Usage

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.

0 0
1
1 797
Yii Version: Unknown
License: BSD-3-Clause
Category: Web Service
Developed by: Иван Иван
Created: Dec 24, 2020
Updated: a year ago
Packagist Profile
Github Repository

Related Extensions