tiendanube-nimbus / icons
Installs: 2 611
Dependents: 0
Suggesters: 0
Security: 0
Stars: 1
Watchers: 35
Forks: 0
Open Issues: 0
pkg:composer/tiendanube-nimbus/icons
Requires (Dev)
- orchestra/testbench: ^3.8
README
This is a PHP version from Nimbus Icon
👾 See live demo here
Get started
This project using composer.
$ composer require tiendanube-nimbus/icons
How to use
<?php use Nimbus\Icon; // Icon::get(ICON_NAME, SIZE, COLOR) $icon = Icon::get("home", 40, '#000000'); echo $icon;
Options
Params allowed on Icon::get() method
| Param | Type | Required | Default |
|---|---|---|---|
$name |
string | true | null |
$size |
int | false | 16 |
$color |
string | false | "#000000" |
Available Icons
To use on $name param as string.
Test locally
We have a simple docker file to test locally, run:
$ docker-compose up
And open: http://localhost/src/example.php to see live sample.