Weave Code
Code Weaver
Helps Laravel developers discover, compare, and choose open-source packages. See popularity, security, maintainers, and scores at a glance to make better decisions.
Feedback
Share your thoughts, report bugs, or suggest improvements.
Subject
Message

Feathericon Bundle Laravel Package

ameotoko/feathericon-bundle

View on GitHub
Deep Wiki
Context7

Ameotoko FeatherIcons Bundle

Simple Symfony/Twig wrapper for FeatherIcons and pixelrobin/php-feather library.

Installation

  1. Install using Composer:
composer require ameotoko/feathericon-bundle
  1. Enable the bundle:
// config/bundles.php
return [
    // ...
    Ameotoko\FeatherIcon\AmeotokoFeatherIconBundle::class => ['all' => true],
];

Usage

The bundle provides new function in your Twig templates, which simply uses getIcon() from php-feather under the hood.

This code in your .html.twig template:

<button type="submit">{{ feathericon('send', {stroke: '#ddd', 'stroke-width': 4}) }} Submit</button>

will produce the same result as:

<?php $icons = new \Feather\Icons(); ?>
<button type="submit"><?= $icons->get('send', ['stroke' => '#ddd', 'stroke-width' => 4], false) ?> Submit</button>

See more about using php-feather.

Weaver

How can I help you explore Laravel packages today?

Conversation history is not saved when not logged in.
Prompt
Add packages to context
No packages found.
emuniq/filament-browser-notifications
syriable/filament-translator
hungnm28/livewire-form
wenprise/eloquent
crudly/encrypted
fadion/bouncy
cuci/prototurk-sdk
gos/pubsub-router-bundle
cuci/prototurk-sdk-symfony
clementtalleu/easyadmin-markdown-bundle
codeflextech/permission-manager
karnoweb/livewire-datepicker
sayedenam/sayed-dashboard
milito/query-filter
apiboxsym/user-bundle
apiboxsym/health-check-bundle
jayeshmepani/jpl-moshier-ephemeris-php
elnasnato/laraliveui
labrodev/rest-sdk
sampaui/sampaui