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

Twig Bootstrap Icons Laravel Package

whatwedo/twig-bootstrap-icons

View on GitHub
Deep Wiki
Context7

Bootstrap Icons Twig Integration

Twig Integration for Bootstrap Icons. This bundle is inspred by marcw/twig-heroicons.

Installation

composer require whatwedo/twig-bootstrap-icons

Twig Integration

Just register the extension

$twig->addExtension(new BootstrapIconsExtensions());

Symfony Integration

// bundles.php
return [
    whatwedo\TwigBootstrapIcons\whatwedoTwigBootstrapIconsBundle::class => ['all' => true],
];

Usage

Outputs the SVG

{{ bootstrap_icon('alarm') }}

you can pass an array as second argument to add attributes to the <svg>-tag:

{{ bootstrap_icon('alarm', {
    class: 'text-gray-500 mr-3 h-6 w-6'
    alt: 'alarm clock'
}) }}
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.
comsave/common
alecsammon/php-raml-parser
chrome-php/wrench
lendable/composer-license-checker
typhoon/reflection
mesilov/moneyphp-percentage
mike42/gfx-php
bookdown/themes
aura/view
aura/html
aura/cli
povils/phpmnd
nayjest/manipulator
omnipay/tests
psr-mock/http-message-implementation
psr-mock/http-factory-implementation
psr-mock/http-client-implementation
voku/email-check
voku/urlify
rtheunissen/guzzle-log-middleware