承接 hyvor/php-svg-icons 相关项目开发

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

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

hyvor/php-svg-icons

最新稳定版本:1.1.0

Composer 安装命令:

composer require hyvor/php-svg-icons

包简介

PHP SVG Icons Library

README 文档

README

Installation:

composer require hyvor/php-svg-icons

Format:

$icon = new Icon($library, $iconName);
$svg = $icon->getSvg($width, $height);

Example:

$icon = new Icon('bootstrap', '123');

$icon->getSvg(); // 16x16
$icon->getSvg(20); // 20x20
$icon->getSvg(20, 25); // 20x25

Contributing

How to add a new icon library

  • Create icons/{library_name} folder with a .gitkeep file in it
  • Add configuration to src/libs.php
  • Create a fetcher in src/Fetcher/{LibraryName}.php. See other fetchers to see how it works. Usually, you have to download the SVG icons from somewhere and add them to the icons folders.

Use php run.php to run all fetchers and update icons.

统计信息

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

GitHub 信息

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

其他信息

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