tiendanube-nimbus / icons
0.1.2
2024-07-23 15:47 UTC
Requires (Dev)
- orchestra/testbench: ^3.8
This package is auto-updated.
Last update: 2024-09-23 16:11:34 UTC
README
这是从Nimbus Icon的PHP版本
👾 在这里查看实时演示
开始使用
本项目使用composer。
$ composer require tiendanube-nimbus/icons
如何使用
<?php use Nimbus\Icon; // Icon::get(ICON_NAME, SIZE, COLOR) $icon = Icon::get("home", 40, '#000000'); echo $icon;
选项
Icon::get()
方法允许的参数
可用图标
作为字符串在$name
参数中使用。
本地测试
我们有一个简单的Dockerfile来本地测试,运行
$ docker-compose up
并打开:https:///src/example.php
查看实时示例。