2017 © Pedro Peláez
 

package blade-svg-sage

image

log1x/blade-svg-sage

  • Wednesday, May 23, 2018
  • by Log1x
  • Repository
  • 3 Watchers
  • 23 Stars
  • 1,848 Installations
  • PHP
  • 0 Dependents
  • 0 Suggesters
  • 5 Forks
  • 1 Open issues
  • 9 Versions
  • 32 % Grown

The README.md

Blade SVG for Sage

Latest Stable Version Total Downloads, (*1)

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., (*2)

Using Sage 10? Check out Sage SVG., (*3)

Requirements

Installation

Install via Composer:, (*4)

$ composer require log1x/blade-svg-sage

Configuration

Use the provided configuration filter below to modify the default configuration., (*5)

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., (*6)

Note: When calling helper functions directly, you must use the App namespace., (*7)

The Versions