承接 jamesbwi/blade-svg 相关项目开发

从需求分析到上线部署,全程专人跟进,保证项目质量与交付效率

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

jamesbwi/blade-svg

最新稳定版本:0.1.5

Composer 安装命令:

composer require jamesbwi/blade-svg

包简介

Embed SVGs in Laravel Blade.

README 文档

README

Latest Version on Packagist Total Downloads

This package allows for easy use and manipulation of svg files within your laravel project.

Installation

You can install the package via composer:

composer require jamesbwi/blade-svg

Usage

To insert an SVG file, simply use the following component:

<x-blade-svg src="img/apple.svg"/>

You can pass any attribute into the component as if it were an inline svg:

<x-blade-svg src="img/apple.svg" class="apple-animation" viewBox="0 0 50 100"/>

<use> tags

If you wish to utilise the SVG <use> tags this package simplifies the process.
The following component will embed the SVG into an <element> tag with the specified attributes:

<x-blade-svg-def id="apple" src="img/apple.svg" viewBox="0 0 50 100"/>

The element (or any other SVG with an id) can then be referenced with the following tag:

<x-blade-svg-use href="#apple"/>

You can add any attribute to the <use> tag:

<x-blade-svg-use href="#apple" class="apple-animation" width="500px" preserveAspectRatio="none"/>

External sources can be referenced too:

<x-blade-svg-use href="fruit-bowl.svg#pear"/>

Changelog

Please see CHANGELOG for more information what has changed recently.

Contributing

Please see CONTRIBUTING for details.

Security

If you discover any security related issues, please email james@wearebwi.com instead of using the issue tracker.

Credits

License

The MIT License (MIT). Please see License File for more information.

Laravel Package Boilerplate

This package was generated using the Laravel Package Boilerplate.

统计信息

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

GitHub 信息

  • Stars: 1
  • Watchers: 1
  • Forks: 0
  • 开发语言: PHP

其他信息

  • 授权协议: MIT
  • 更新时间: 2022-04-14

承接程序开发

PHP开发

VUE

Vue开发

前端开发

小程序开发

公众号开发

系统定制

数据库设计

云部署

网站建设

安全加固