schantldev/statamic-phosphoricons
Composer 安装命令:
composer require schantldev/statamic-phosphoricons
包简介
README 文档
README
Statamic Phosphoricons allows you to use the Phosphoricons library as set icons within the CP.
Features
- use all 1500+ Phosphor icons within the CP
- choose from 6 icon variants including fill and duotone
See the Phosphoricons website for reference.
How to Install
You can install this addon via Composer:
composer require schantldev/statamic-phosphoricons
To set a different variant than the default light variant, publish the phosphoricons.php configuration file using php artisan vendor:publish --tag phosphoricons-config and set a different variant instead. Optionally, you can disable the usage as set icons, by setting the variant to null. The default Statamic icons will then be used instead.
By default, the addon will symlink all the icons from the vendor folder. If you have concerns doing so, feel free to publish all icons (over 9,000 SVGs) by running php artisan vendor:publish --tag phosphoricons-assets.
How to Use
Whenever the CP offers you to choose an icon, for example in in the blueprint builder, you can now select from all the available Phosphoricons.
Usage with the Icon fieldtype
The icon set option should be set to: phosphoricons/{variant}, while variant can be regular, thin, light, bold, duotone or fill.
Developer Note for contributing
When updating the phosphoricons library, adjust the version in the package.json if necessary and run npm update. Furthermore, run npm run export to copy all the icons to the assets folder, followed by npm run rename to rename the icons accordingly.
This is necessary, because the icons always include the variant name at the end. Renaming them allows for switching variants without reselecting them.
The renaming command relies on the Perl rename library. Install via brew install rename.
schantldev/statamic-phosphoricons 适用场景与选型建议
schantldev/statamic-phosphoricons 是一款 基于 PHP 开发的 Composer 扩展包,目前已累计 5.84k 次下载、GitHub Stars 达 0, 最近一次更新时间为 2025 年 02 月 03 日, 在 PHP 生态内属于活跃度较高的组件。
我们在过去多个企业项目中使用过 schantldev/statamic-phosphoricons 或与其功能相近的方案,如果你在选型或落地过程中遇到问题,例如 版本兼容、二次改造、私有化封装、与内部系统对接、生产 BUG 排查,欢迎联系我们协助评估。
基于 schantldev/statamic-phosphoricons 在你已有业务上做功能扩展、字段裁剪、UI 适配、与内部账号 / 权限 / 日志系统的深度对接。
线上偶发问题、内存泄漏、慢查询、并发异常等排查修复;针对高流量场景做缓存、队列、索引层面的调优。
承接完整的项目从需求 → 设计 → 开发 → 上线 → 长期运维;也可按月提供技术保姆服务。
统计信息
- 总下载量: 5.84k
- 月度下载量: 0
- 日度下载量: 0
- 收藏数: 0
- 点击次数: 20
- 依赖项目数: 0
- 推荐数: 0
其他信息
- 授权协议: Unknown
- 更新时间: 2025-02-03