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

Fontawesome Bundle Laravel Package

ekyna/fontawesome-bundle

View on GitHub
Deep Wiki
Context7

FontAwesomeBundle

FortAwesome/Font-Awesome integration for Symfony2.

  • Fonts installation
  • Preconfigured asset

Composer installation:

{
    "require": {
        "ekyna/fontawesome-bundle": "0.1.*@dev"
    },
    "scripts": {
        "post-install-cmd": [
            "Ekyna\\FontAwesomeBundle\\Composer\\ScriptHandler::install"
        ],
        "post-update-cmd": [
            "Ekyna\\FontAwesomeBundle\\Composer\\ScriptHandler::install"
        ]
    },
}

Register bundle in kernel:

// app/AppKernel.php
class AppKernel extends Kernel
{
    public function registerBundles()
    {
        $bundles = array(
            ...
            new Ekyna\FontAwesomeBundle\EkynaFontAwesomeBundle()
        );
    }
}

Fonts installation without composer script handler: php app:console ekyna:fontawesome:install

Configuration (optionnal, default values)

# app/config/config.yml
ekyna_fontawesome:
    output_dir: ~
    assets_dir: %kernel.root_dir%/../vendor/fortawesome/font-awesome
    configure_assetic: true

Use in a twig template:

{% stylesheets output='css/backend.css' filter='cssrewrite, ?yui_css'
    ...
    'css/fontawesome.css'
    ...
%}
    <link href="{{ asset_url }}" rel="stylesheet" type="text/css" />
{% endstylesheets %}
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