PHPackages                             yassinedoghri/tempest-icons - PHPackages - PHPackages  [Skip to content](#main-content)[PHPackages](/)[Directory](/)[Categories](/categories)[Trending](/trending)[Leaderboard](/leaderboard)[Changelog](/changelog)[Analyze](/analyze)[Collections](/collections)[Log in](/login)[Sign up](/register)

1. [Directory](/)
2. /
3. [Utility &amp; Helpers](/categories/utility)
4. /
5. yassinedoghri/tempest-icons

Abandoned → [yassinedoghri/php-icons](/?search=yassinedoghri%2Fphp-icons)Library[Utility &amp; Helpers](/categories/utility)

yassinedoghri/tempest-icons
===========================

A Tempest library providing a convenient `icon(…)` function for rendering SVG icons with php-icons.

30PHPCI passing

Since Oct 20Pushed 1y ago1 watchersCompare

[ Source](https://github.com/yassinedoghri/tempest-icons)[ Packagist](https://packagist.org/packages/yassinedoghri/tempest-icons)[ RSS](/packages/yassinedoghri-tempest-icons/feed)WikiDiscussions develop Synced 1mo ago

READMEChangelogDependenciesVersions (1)Used By (0)

Tempest Icons 🌊 🙂
=================

[](#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).

[![Latest Stable Version](https://camo.githubusercontent.com/e0a60469068c28670b59f72f08b5d997d579855d4230de1f74037e3970b8dc22/68747470733a2f2f706f7365722e707567782e6f72672f79617373696e65646f676872692f74656d706573742d69636f6e732f76)](https://packagist.org/packages/yassinedoghri/tempest-icons)[![Total Downloads](https://camo.githubusercontent.com/07cd989a69c28a45c8e2ce8a475dbf2115d69174299985df8ccca47cd69ba82b/68747470733a2f2f706f7365722e707567782e6f72672f79617373696e65646f676872692f74656d706573742d69636f6e732f646f776e6c6f616473)](https://packagist.org/packages/yassinedoghri/tempest-icons)[![License](https://camo.githubusercontent.com/6b864092b0cc24baa9bae133212f0743b75e1fa5642b6158b9a195a46292c998/68747470733a2f2f696d672e736869656c64732e696f2f6769746875622f6c6963656e73652f79617373696e65646f676872692f74656d706573742d69636f6e733f636f6c6f723d677265656e)](https://packagist.org/packages/yassinedoghri/tempest-icons)[![PHP Version Require](https://camo.githubusercontent.com/47a1a0c2d8781576f508a9a2eaec3e056097465426623001b8450005b5ef4ebb/68747470733a2f2f706f7365722e707567782e6f72672f79617373696e65646f676872692f74656d706573742d69636f6e732f726571756972652f706870)](https://packagist.org/packages/yassinedoghri/tempest-icons)

🚀 Getting started
-----------------

[](#-getting-started)

### 0. Prerequisites

[](#0-prerequisites)

Usage of Tempest Icons requires the following:

- A Tempest based project
- Composer for package management
- PHP 8.3+

### 1. Install via composer

[](#1-install-via-composer)

```
composer require yassinedoghri/tempest-icons
```

### 2. Setup

[](#2-setup)

[Initialize and configure PHPIcons](https://github.com/yassinedoghri/php-icons), ie. create the `php-icons.php` config file:

```
vendor/bin/php-icons init
```

### 3. Usage

[](#3-usage)

Use the `icon(string $iconKey, array $attributes)` function anywhere in your View files to render SVG icons:

```
