log1x/blade-svg-sage 问题修复 & 功能扩展

解决BUG、新增功能、兼容多环境部署,快速响应你的开发需求

邮箱:yvsm@zunyunkeji.com | QQ:316430983 | 微信:yvsm316

log1x/blade-svg-sage

最新稳定版本:v3.0.0

Composer 安装命令:

composer require log1x/blade-svg-sage

包简介

Composer package to add support for Blade SVG by Adam Wathan to Roots Sage.

README 文档

README

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.

统计信息

  • 总下载量: 76.24k
  • 月度下载量: 0
  • 日度下载量: 0
  • 收藏数: 75
  • 点击次数: 1
  • 依赖项目数: 0
  • 推荐数: 0

GitHub 信息

  • Stars: 74
  • Watchers: 9
  • Forks: 11
  • 开发语言: PHP

其他信息

  • 授权协议: MIT
  • 更新时间: 2017-04-09