log1x/blade-svg-sage

Composer package to add support for Blade SVG by Adam Wathan to Roots Sage.
80,244 75
Install
composer require log1x/blade-svg-sage
Latest Version:v3.0.0
PHP:>=7.0
Laravel:5 – 8
License:MIT
Last Updated:Mar 27, 2024
Links: GitHub  ·  Packagist
Maintainer: Log1x

Blade SVG for Sage

Latest Stable Version Total Downloads

Blade SVG for Sage is a wrapper for Blade SVG by Adam Wathan allowing you to easily use SVG's in your Blade templates, either as an inline SVG or SVG sprite when using Sage 9.

Using Sage 10? Check out Sage SVG.

Requirements

Installation

Install via Composer:

$ composer require log1x/blade-svg-sage

Configuration

Use the provided configuration filter below to modify the default configuration.

add_filter('bladesvg', function () {
    return [
        'svg_path' => 'resources/svg',
        'spritesheet_path' => 'resources/svg/spritesheet.svg',
        'spritesheet_url' => '',
        'sprite_prefix' => '',
        'inline' => true,
        'class' => ''
    ];
});

Usage

Please refer to the original Blade SVG documentation for usage examples.

Note: When calling helper functions directly, you must use the App namespace.

Related Packages

roots/wp-blade-check

Simple Composer package that checks and displays an admin notice if your uncompi...

1,296 16
adwisemedia/blade-directives

A set of Blade directives for use with Roots Sage.

146 0
log1x/sage-directives

A set of Blade directives for use with Roots Sage.

823,048 300
log1x/sage-html-forms

Create forms using HTMLForms.io and Sage 10 Blade components

50,416 57
kimhf/sage-woocommerce-support

Add Woocommerce blade template and controllers support for Sage 9 based themes.

1,134 11

Version History

Version Released PHP Laravel License
v3.0.0 >=7.0 ^5.3|^6.0|^7.0|^8.0 MIT
v2.0.2 >=7.0 MIT
v2.0.1 >=7.0 MIT
v2.0.0 >=7.0 MIT
v1.0.6 MIT