jajuma/phosphorhyva 问题修复 & 功能扩展

解决BUG、新增功能、兼容多环境部署,快速响应你的开发需求

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

jajuma/phosphorhyva

Composer 安装命令:

composer require jajuma/phosphorhyva

包简介

This Magento 2 extension allows using Phosphor icons with Hyvä Themes

README 文档

README

Phosphor Hyvä extension by JaJuMa allows using Phosphor Icons as SVGs on Magento 2 & Mage-OS sites using Hyvä Themes.



Compatible with

Hyvä Themes Mage-OS Magento

Features

Phosphor Hyvä for Magento & Mage-OS with Hyvä Themes

  • includes 9000+ icons,
  • covering a huge range of topics,
  • including brands
  • in 6 different styles
    • Thin
    • Light
    • Regular
    • Bold
    • Fill
    • Duotone
  • allows adding Phosphor Icons in Code
  • allows adding Phosphor Icons in CMS content from Backend.

Further Info, Extension Description & Manual

Demo

Phosphor SVG icons for Hyvä Themes Demo:

Icon List

List view and detail view with all included icons for copy & paste the code to use the icons in your project:

Installation

Install via composer as any other Magento extension from github:

composer require jajuma/phosphorhyva

or get it from Extension Website for manual installation in app/code/ as any other Magento extension.

Using Phosphor Icons in Hyvä Themes with JaJuMa "Phosphor Hyvä" module

How to use Font Phosphor Icons in Hyvä Themes in view model

JaJuMa "Phosphor Hyvä" module provides following view model:

  • Phosphoricons

Require the view models in your template:

/** @var \Jajuma\PhosphorHyva\ViewModel\Phosphoricons $phosphoricons */
$phosphoricons = $viewModels->require(\Jajuma\PhosphorHyva\ViewModel\Phosphoricons::class);

Then render the icons like this:

  • Regular style:
<?= $phosphoricons->acornHtml('text-red-100', 24, 24) ?>
  • Other styles, include the desired style (Thin, Light, Bold, Fill, Duotone) as in following example:
<?= $phosphoricons->acornBoldHtml('text-red-100', 24, 24) ?>
  • The method name is the camel cased icon name, followed by Html.
  • In an IDE you should have autocompletion for all available methods.
  • The parameters are optional, and change the class (in single quotes) followed by 2 values for width and height attributes of the SVG element.
  • It is recommended to set all of them, so that the images are not rendered in huge sizes if CSS fails to load.

or you may also pass additional attributes like this as an array:

<?= $phosphoricons->acornHtml('text-red-100', 24, 24, ['style'=>'position:relative']) ?>

How to use Phosphor Icons in Hyvä Themes in CMS content

Phosphor Hyvä module adds an icon directive to render icons in filtered content like CMS blocks or pages. So you may add icons in text / code blocks like this:

  • Regular style:
{{icon "phosphoricons/acorn-bold" classes="text-red-100" width=12 height=12}}
  • Other styles, include the desired style (Thin, Light, Bold, Fill, Duotone) as in following example:
{{icon "phosphoricons/acorn-bold" classes="text-red-100" width=12 height=12}}
  • "classes" parameter is used for setting any css class.
  • "width"/"height" parameters are used for setting width/height attributes for icons.
  • Hint: You may get the code snippets for copy & paste for each icon on the demo - see link below.

License

The code is licensed under the MIT License (MIT)

Other Magento 2 & Hyvä Themes Extensions by JaJuMa

Other Services by JaJuMa

© JaJuMa GmbH | www.jajuma.de

jajuma/phosphorhyva 适用场景与选型建议

jajuma/phosphorhyva 是一款 基于 PHP 开发的 Composer 扩展包,目前已累计 3.52k 次下载、GitHub Stars 达 2, 最近一次更新时间为 2025 年 03 月 25 日, 在 PHP 生态内属于活跃度较高的组件。

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

围绕 jajuma/phosphorhyva 我们能提供哪些服务?
定制开发 / 二次开发

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

BUG 修复 & 性能优化

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

项目外包 & 长期维护

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

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

统计信息

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

GitHub 信息

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

其他信息

  • 授权协议: MIT
  • 更新时间: 2025-03-25