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.
capell-app/block-library
capell-app/frontend
capell-app/admin
capell-app/core
axium/identity
cetria/laravel-dummy-models
cetria/reflection-helper
agropredict/sso-auth-bundle
evolvestudio/spam-protection
directorytree/privacy-filter-classifier
datacore/hub-sdk
develia/commons
cuci/prototurk-sdk
cuci/prototurk-sdk-symfony
develia/geo-bundle
dreamzy/livewire-charts
touchestate-sdk/php-sdk
22h/doctrine-garbage-collection-bundle
agtp/agtp-php
agtp/mod-php