Skip to content

Symfony 4 AssetInjector: Inject twig, js, and css to your symfony application with ease.

Notifications You must be signed in to change notification settings

IndyDevGuy/assetinjector-bundle

Repository files navigation

Symfony 4 AssetInjector

###What is it and how does it work?

Well its a manager... of assets hehe no seriously it manages assets like css, js and even dynamic twig templates.

Installation

Step 1: Download the Bundle

Open a command console, enter your project directory and execute the following command to download the latest stable version of this bundle:

$ composer require indydevguy/assetinjector-bundle

This command requires you to have Composer installed globally, as explained in the installation chapter of the Composer documentation.

Step 2: Enable the Bundle

If you are using Symfony Flex this should be done for you.

If you are not using Symfony Flex then you have to enable the bundle by adding it to the list of registered bundles in the config/bundles.php file of your project:

<?php
// config/bundles.php

return [
    // ...
    IndyDevGuy\AssetinjectorBundle\AssetInjectorBundle::class => ['all' => true],
    // ...
];

###Installation Complete

About

Symfony 4 AssetInjector: Inject twig, js, and css to your symfony application with ease.

Resources

Stars

Watchers

Forks

Packages

No packages published