https://github.com/yassinedoghri/tempest-icons
A Tempest library providing a convenient `icon(…)` function for rendering SVG icons with https://github.com/yassinedoghri/php-icons
https://github.com/yassinedoghri/tempest-icons
iconify icons php php-icons tempest
Last synced: 6 months ago
JSON representation
A Tempest library providing a convenient `icon(…)` function for rendering SVG icons with https://github.com/yassinedoghri/php-icons
- Host: GitHub
- URL: https://github.com/yassinedoghri/tempest-icons
- Owner: yassinedoghri
- License: mit
- Created: 2024-10-04T11:38:30.000Z (about 1 year ago)
- Default Branch: develop
- Last Pushed: 2024-10-20T14:44:38.000Z (12 months ago)
- Last Synced: 2025-03-31T08:43:58.134Z (7 months ago)
- Topics: iconify, icons, php, php-icons, tempest
- Language: PHP
- Homepage:
- Size: 86.9 KB
- Stars: 3
- Watchers: 1
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
- Contributing: CONTRIBUTING.md
- License: LICENSE.md
- Security: SECURITY.php
Awesome Lists containing this project
README
# Tempest Icons 🌊 🙂
A [Tempest](https://tempestphp.com/) library providing a convenient `icon(…)`
function for rendering SVG icons with
[php-icons](https://github.com/yassinedoghri/php-icons).[](https://packagist.org/packages/yassinedoghri/tempest-icons)
[](https://packagist.org/packages/yassinedoghri/tempest-icons)
[](https://packagist.org/packages/yassinedoghri/tempest-icons)
[](https://packagist.org/packages/yassinedoghri/tempest-icons)## 🚀 Getting started
### 0. Prerequisites
Usage of Tempest Icons requires the following:
- A Tempest based project
- Composer for package management
- PHP 8.3+### 1. Install via composer
```sh
composer require yassinedoghri/tempest-icons
```### 2. Setup
[Initialize and configure PHPIcons](https://github.com/yassinedoghri/php-icons),
ie. create the `php-icons.php` config file:```sh
vendor/bin/php-icons init
```### 3. Usage
Use the `icon(string $iconKey, array $attributes)` function anywhere in your
View files to render SVG icons:```php
= icon('material-symbols:bolt') ?>
//
//
//= icon('material-symbols:bolt', ['class' => 'text-2xl', "style" => "color: yellow;"]) ?>
// ...= icon('material-symbols:bolt')
->attr('class', 'text-2xl')
->attr('style', 'color: yellow;') ?>
// ...
```For more usage info, see
[php icons docs](https://github.com/yassinedoghri/php-icons).## 📜 License
Code released under the [MIT License](https://choosealicense.com/licenses/mit/).
Copyright (c) 2024-present, Yassine Doghri
([@yassinedoghri](https://yassinedoghri.com/)).