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.
andydefer/laravel-cluster
testo/fiber
mintobit/jobqueue
a4sex/maintenance-bundle
a4sex/entity-date-update
a4sex/client-identifier
a4sex/base-utilites
a4sex/key-value-storage
a4sex/micro-status
chilldev/dependency-injection-extra
datinglibre/datinglibre-app-api
biberltd/corebundle
bricre/symfony-bundle-test
biberltd/logbundle
dominium/http-adapter-bundle
dominium/google-analytics
a4sex/auto-clean-entity
christhompsontldr/laravel-inky
spatie/mailcoach-vapor
spatie/laravel-javascript-views