legacy-icons/famfamfam-silk
Composer 安装命令:
composer require legacy-icons/famfamfam-silk
包简介
FamFamFam Silk icon pack, as individual icons or as a CSS spritesheet
README 文档
README
About
The Silk icon pack, as available on famfamfam website.
All credits for these icons go to their original author: Mark James (mjames@gmail.com)
The aim of this project is to make this icon pack available through various package managers, such as:
All icons are supplied in PNG format.
CSS spritesheets
You can insert the icons directly into your HTML with a common IMG tag:
<img alt="Delete" src="dist/png/key_delete.png" width="16" height="16">
In addition to the icons by themselves, this project also ships a CSS spritesheet for the icon-pack. This spritesheet allows to load the entire icon-pack in just 1 image, and thus reduce HTTP calls.
This is what it actually looks:
All the positioning of the icons inside this alone image is made through CSS, which allows you to just add block-type tags with the proper class and get the same result:
<div class="famfamfam-silk key_delete"></div>
Just remember to add the CSS stylesheet to the HEAD of your HTML page!
Install
Get the package with NPM
npm install famfamfam-silk
Get the package with Bower
bower install famfamfam-silk
Get the package with Composer / Packagist
composer require legacy-icons/famfamfam-silk
Get the package with NuGet
Install-Package famfamfam-silk
Build the whole project or your custom project
We use Gulp to build the project, so if you want to re-build or customize this project, you'll need Gulp.
After gulp is installed, and your CLI is pointed to your work directory, first install the dependencies:
with NPM 2.x.x
npm install
with NPM 3.x.x (resolve dependencies for node-spritesheet before this module's ones)
npm install grunt grunt-contrib-coffee grunt-contrib-clean
npm install
then be sure that you have ImageMagick installed for building spritesheet.
then, you can run the gulp build task to build the project:
gulp build
What the build task does?
First, it takes PNG files from the src folder, and pastes them to the dist folder.
Then it creates a spritesheet from the PNG images located in the src folder, and thus creates the sprite folder in dist.
If, for example you just want application_put and monitor_edit icons in a spritesheet, you just have to fork this project, point your CLI to the working directory,
empty the src directory, except application_put and monitor_edit icons in PNG format, and then run the gulp build task.
You'll get the proper spritesheet and copies of the icons directly in the dist folder.
License
See License
legacy-icons/famfamfam-silk 适用场景与选型建议
legacy-icons/famfamfam-silk 是一款 基于 CSS 开发的 Composer 扩展包,目前已累计 225 次下载、GitHub Stars 达 337, 最近一次更新时间为 2016 年 02 月 18 日, 在 PHP 生态内属于活跃度较高的组件。
它主要适用于以下技术方向: 「png」 「gif」 「famfamfam」 「silk」 「icon」 「img」 等业务场景。在实际项目中,围绕这些方向常见需要落地的问题包括:接口对接、性能调优、并发安全、与既有框架(Laravel / ThinkPHP / Yii / Webman 等)的兼容适配,以及生产环境的日志埋点与稳定性保障。
我们在过去多个企业项目中使用过 legacy-icons/famfamfam-silk 或与其功能相近的方案,如果你在选型或落地过程中遇到问题,例如 版本兼容、二次改造、私有化封装、与内部系统对接、生产 BUG 排查,欢迎联系我们协助评估。
基于 legacy-icons/famfamfam-silk 在你已有业务上做功能扩展、字段裁剪、UI 适配、与内部账号 / 权限 / 日志系统的深度对接。
线上偶发问题、内存泄漏、慢查询、并发异常等排查修复;针对高流量场景做缓存、队列、索引层面的调优。
承接完整的项目从需求 → 设计 → 开发 → 上线 → 长期运维;也可按月提供技术保姆服务。
与 legacy-icons/famfamfam-silk 相关的其它包
同方向 / 同关键字的高下载量 PHP Composer 包推荐,方便对比选型:
This is the Famfamfam silk icon set, wrapped into an easy to use PHP composer package.
This is the Famfamfam silk icon set, wrapped into an easy to use PHP composer package.
FamFamFam Flags icon pack, as individual icons or as a CSS spritesheet
The UNOFFICIAL sprite of the Silk icons by FamFamFam (http://www.famfamfam.com/lab/icons/silk/)
PHP Cli Image - This library converts a given image to ASCII string.
Image optimization widget for Yii2 Framework with auto WebP/AVIF image format generation from PNG/JPG files.
统计信息
- 总下载量: 225
- 月度下载量: 0
- 日度下载量: 0
- 收藏数: 337
- 点击次数: 14
- 依赖项目数: 1
- 推荐数: 0
其他信息
- 授权协议: CC-BY-2.5
- 更新时间: 2016-02-18