承接 madeyourday/svg-icon-font-generator 相关项目开发

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

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

madeyourday/svg-icon-font-generator

Composer 安装命令:

composer require madeyourday/svg-icon-font-generator

包简介

Creates a SVG font from a set of SVG files and vice versa. The glyph mapping is based on the file names – that makes updating and extending easy and fast.

README 文档

README

Creates a SVG font from a set of SVG files and vice versa.
The glyph mapping is based on the file names – that makes updating and extending easy and fast.

Installation

You can create the svg-icon-font-generator.phar by yourself using the following commands: (this requires composer.phar to be installed)

git clone https://github.com/madeyourday/SVG-Icon-Font-Generator.git
cd SVG-Icon-Font-Generator
php composer.phar install
php build.php

Or download the latest release here: https://github.com/madeyourday/SVG-Icon-Font-Generator/releases

System Requirements

  • PHP 5.3 or higher
  • PHP mbstrings needs to be enabled
  • phar.readonly must be off.

Usage

Create a SVG font from a set of SVG files

php svg-icon-font-generator.phar create-font /path/to/svg/files your-font.svg --rename-files

The files should be named like this:

  • arrow-up-x2191.svg use the correct unicode symbol if possible
  • magnifying-glass-xe001.svg otherwise use the unicode "Private Use Area" (start from xe001, don't use xe000)
  • key.svg this file gets automatically mapped to a unicode "Private Use Area" symbol, if you use the --rename-files option this file will be renamed to something like key-xe002.svg

The list above generates the class names icon-arrow-up, icon-magnifying-glass and icon-key.

For creating new icons you can use this SVG template: https://github.com/downloads/madeyourday/SVG-Icon-Font-Generator/icon-template.svg

An example set of SVG files can be found here: https://github.com/madeyourday/RockSolid-Icon-Font/tree/master/svg

Create a set of SVG files from a SVG font

php svg-icon-font-generator.phar create-files your-font.svg /path/to/svg/files

Create a HTML info page from a SVG font

php svg-icon-font-generator.phar create-info your-font.svg your-font-info.html

Create a CSS file with icon classes from a SVG font

php svg-icon-font-generator.phar create-css your-font.svg your-icons.css

The icon class names are based on the glyph-names specified in the SVG file.

madeyourday/svg-icon-font-generator 适用场景与选型建议

madeyourday/svg-icon-font-generator 是一款 基于 PHP 开发的 Composer 扩展包,目前已累计 159 次下载、GitHub Stars 达 104, 最近一次更新时间为 2014 年 07 月 03 日, 在 PHP 生态内属于活跃度较高的组件。

我们在过去多个企业项目中使用过 madeyourday/svg-icon-font-generator 或与其功能相近的方案,如果你在选型或落地过程中遇到问题,例如 版本兼容、二次改造、私有化封装、与内部系统对接、生产 BUG 排查,欢迎联系我们协助评估。

围绕 madeyourday/svg-icon-font-generator 我们能提供哪些服务?
定制开发 / 二次开发

基于 madeyourday/svg-icon-font-generator 在你已有业务上做功能扩展、字段裁剪、UI 适配、与内部账号 / 权限 / 日志系统的深度对接。

BUG 修复 & 性能优化

线上偶发问题、内存泄漏、慢查询、并发异常等排查修复;针对高流量场景做缓存、队列、索引层面的调优。

项目外包 & 长期维护

承接完整的项目从需求 → 设计 → 开发 → 上线 → 长期运维;也可按月提供技术保姆服务。

yvsm@zunyunkeji.com QQ:316430983 微信:yvsm316 西安尊云信息科技 · 专注 PHP / Go / 分布式系统研发

统计信息

  • 总下载量: 159
  • 月度下载量: 0
  • 日度下载量: 0
  • 收藏数: 104
  • 点击次数: 12
  • 依赖项目数: 0
  • 推荐数: 0

GitHub 信息

  • Stars: 104
  • Watchers: 10
  • Forks: 24
  • 开发语言: PHP

其他信息

  • 授权协议: Unknown
  • 更新时间: 2014-07-03