PHPackages                             indydevguy/assetinjector-bundle - PHPackages - PHPackages  [Skip to content](#main-content)[PHPackages](/)[Directory](/)[Categories](/categories)[Trending](/trending)[Leaderboard](/leaderboard)[Changelog](/changelog)[Analyze](/analyze)[Collections](/collections)[Log in](/login)[Sign up](/register)

1. [Directory](/)
2. /
3. indydevguy/assetinjector-bundle

ActiveSymfony-bundle

indydevguy/assetinjector-bundle
===============================

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

v0.0.33(1y ago)0159MITPHP

Since Apr 26Pushed 1y agoCompare

[ Source](https://github.com/IndyDevGuy/assetinjector-bundle)[ Packagist](https://packagist.org/packages/indydevguy/assetinjector-bundle)[ Docs](https://github.com/MaSt3r-iLLuSioN/assetinjector-bundle)[ RSS](/packages/indydevguy-assetinjector-bundle/feed)WikiDiscussions master Synced today

READMEChangelog (5)Dependencies (3)Versions (6)Used By (0)

Symfony 4 AssetInjector
-----------------------

[](#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
============

[](#installation)

### Step 1: Download the Bundle

[](#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](https://getcomposer.org/doc/00-intro.md)of the Composer documentation.

### Step 2: Enable the Bundle

[](#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:

```
