This is a PHP version from Nimbus Icon
👾 See live demo here
This project using composer.
$ composer require tiendanube-nimbus/icons<?php
use Nimbus\Icon;
// Icon::get(ICON_NAME, SIZE, COLOR)
$icon = Icon::get("home", 40, '#000000');
echo $icon;Params allowed on Icon::get() method
| Param | Type | Required | Default |
|---|---|---|---|
$name |
string | true | null |
$size |
int | false | 16 |
$color |
string | false | "#000000" |
To use on $name param as string.
We have a simple docker file to test locally, run:
$ docker compose up -dAnd open: http://localhost:3007/src/example.php to see live sample.