loganmarchione/homelab-svg-assets
Composer 安装命令:
composer require loganmarchione/homelab-svg-assets
包简介
Full-color SVG icons of homelab-related software, products, and brands
README 文档
README
Over 600 full-color SVG icons of homelab-related software, products, and brands in a normalized size.
Table of Contents
Usage
⚠️ All users should read the disclaimer before using this project. ⚠️
General usage
Icons as SVGs are available in the assets directory. See ICONS.md for a preview of all icons.
Diagrams.net usage
In a Diagrams.net project, go to File-->Open Library from-->URL and paste in the URL below (it will take a second to load)
https://raw.githubusercontent.com/loganmarchione/homelab-svg-assets/main/homelab-svg-assets.xml
You can also start brand new project with the library built-in to the URL by using this link (also below)
https://app.diagrams.net/?clibs=Uhttps%3A%2F%2Fraw.githubusercontent.com%2Floganmarchione%2Fhomelab-svg-assets%2Fmain%2Fhomelab-svg-assets.xml
If you self-host Diagrams.net (it is available as a Docker container), you can replace the domain with your custom domain
https://drawio.yourdomain.com/?clibs=Uhttps%3A%2F%2Fraw.githubusercontent.com%2Floganmarchione%2Fhomelab-svg-assets%2Fmain%2Fhomelab-svg-assets.xml
CDN usage
Icons are available via jsDelivr.
Replace the icon name as needed. You can also replace latest with a specific version.
<img height="48" width="48" src="https://cdn.jsdelivr.net/npm/@loganmarchione/homelab-svg-assets@latest/assets/linux.svg"/>
PHP usage
Icons are available in PHP as a package on Packagist.
Run composer require loganmarchione/homelab-svg-assets, or add the package to your composer.json file (below)
{
"require": {
"loganmarchione/homelab-svg-assets"
}
}
Icons will be available at ./vendor/loganmarchione/homelab-svg-assets/assets/linux.svg
NPM usage
Icons are available as a package on NPM.
Run npm install @loganmarchione/homelab-svg-assets, or add the package to your package.json file (below)
{
"dependencies": {
"@loganmarchione/homelab-svg-assets": "*"
}
}
Icons will be available at ./node_modules/@loganmarchione/homelab-svg-assets/assets/linux.svg
Hugo usage
There is a go.mod file, so this icon pack can be used as a Hugo module. You need to be using at least Hugo 0.56.0.
In your Hugo site directory, initialize your site as a module:
hugo mod init foo
In your config.yaml (adjust for .json or .toml configuration files), add the section below:
module:
imports:
- path: github.com/loganmarchione/homelab-svg-assets
mounts:
- source: assets
target: assets/svg/homelab-svg-assets
Download the module:
hugo mod get -u
Create a shortcode in the location below:
layouts/shortcodes/homelab.html
Copy/paste the following code into the shortcode (you can apply custom CSS using the class blah in the example):
{{/*Get the parameters */}}
{{ $path := (.Get "src") }}
{{/* Concat to create the correct path */}}
{{- $icon := resources.Get (print "svg/homelab-svg-assets/" $path ".svg" ) -}}
<span class="blah">{{- $icon.Content | safeHTML -}}</span>
Finally, in your markdown files, you can reference the icon:
{{< homelab src="linux" >}}
Legal
See DISCLAIMER.md
Other icon sets
It would be remiss of me if I did not mention other great icons sets
- Simple Icons - Monochromatic SVG icons for popular brands
- Bootstrap Icons - Mostly generic icons, but some brand icons
- Font Awesome - Mix of generic and brand icons
- Devicon - Icons representing programming languages, designing & development tools
- Dashboard Icons - Mix of SVG and PNG dashboard icons
- Aegis Icons - Unofficial 2FA entry icons for open source Android authenticator Aegis
- theSVG
loganmarchione/homelab-svg-assets 适用场景与选型建议
loganmarchione/homelab-svg-assets 是一款 基于 Python 开发的 Composer 扩展包,目前已累计 1.69k 次下载、GitHub Stars 达 1.22k, 最近一次更新时间为 2022 年 12 月 15 日, 在 PHP 生态内属于活跃度较高的组件。
它主要适用于以下技术方向: 「icons」 「svg」 「homelab」 等业务场景。在实际项目中,围绕这些方向常见需要落地的问题包括:接口对接、性能调优、并发安全、与既有框架(Laravel / ThinkPHP / Yii / Webman 等)的兼容适配,以及生产环境的日志埋点与稳定性保障。
我们在过去多个企业项目中使用过 loganmarchione/homelab-svg-assets 或与其功能相近的方案,如果你在选型或落地过程中遇到问题,例如 版本兼容、二次改造、私有化封装、与内部系统对接、生产 BUG 排查,欢迎联系我们协助评估。
基于 loganmarchione/homelab-svg-assets 在你已有业务上做功能扩展、字段裁剪、UI 适配、与内部账号 / 权限 / 日志系统的深度对接。
线上偶发问题、内存泄漏、慢查询、并发异常等排查修复;针对高流量场景做缓存、队列、索引层面的调优。
承接完整的项目从需求 → 设计 → 开发 → 上线 → 长期运维;也可按月提供技术保姆服务。
与 loganmarchione/homelab-svg-assets 相关的其它包
同方向 / 同关键字的高下载量 PHP Composer 包推荐,方便对比选型:
PHP class to add Font Awesome 5+'s SVG icons inline without Javascript.
Utility functions to inline SVGs in PHP Projects
A simple library of SVG page type icons for enhancing your SilverStripe CMS interface.
A Filament plugin that integrates tabler icons, allowing you to use them seamlessly across Filament forms, tables, actions, and more.
Generates QR Codes
Craft CMS Twig extension to include SVGs from the Feather and Zondicons SVG icon libraries directly in your templates.
统计信息
- 总下载量: 1.69k
- 月度下载量: 0
- 日度下载量: 0
- 收藏数: 1221
- 点击次数: 14
- 依赖项目数: 0
- 推荐数: 0
其他信息
- 授权协议: MIT
- 更新时间: 2022-12-15