indydevguy/assetinjector-bundle

Makes it easier to display scripts and stylesheets in a managed way. Can also display twig templates with variables.

v0.0.31 2022-01-15 22:51 UTC

This package is auto-updated.

Last update: 2024-05-16 03:42:26 UTC


README

###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