PHPackages                             trikoder/assets-manifest-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. [Utility &amp; Helpers](/categories/utility)
4. /
5. trikoder/assets-manifest-bundle

ActiveSymfony-bundle[Utility &amp; Helpers](/categories/utility)

trikoder/assets-manifest-bundle
===============================

Symfony bundle for generating asset urls for our new frontend static asset builing tool

v1.0.1(7y ago)012PHPPHP &gt;=5.6.0

Since Mar 20Pushed 7y ago6 watchersCompare

[ Source](https://github.com/trikoder/assets-manifest-bundle)[ Packagist](https://packagist.org/packages/trikoder/assets-manifest-bundle)[ RSS](/packages/trikoder-assets-manifest-bundle/feed)WikiDiscussions master Synced 2d ago

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

Manifest Asset Bundle
=====================

[](#manifest-asset-bundle)

This bundle provides Twig helper for generating urls for static public assets.

It reads information from simple JSON config file. There is an example file in [manifest.json](Tests/Service/test-manifest.json)

Usage
-----

[](#usage)

Bundle provides two Twig functions - manifestAsset and manifestAssetInline.

mainfestAsset takes 2 parameters:

- asset url in format @BundleName:path/to/asset or namespaced path @BundleName/path/to/asset
- optional array with options
    - for now only option is: "absolute" =&gt; if true function returns absolute URIs

Example usage:

```

```

manifestAssetInline takes 1 parameter:

- asset url in format @BundleName:path/to/asset or namespaced path @BundleName/path/to/asset

It returns the file content of the asset.

Example usage:

```
{{ manifestAssetInline('@AppBundle:css/bundles/home.css') }}
```

### Using custom Twig namespaces

[](#using-custom-twig-namespaces)

First, you need to register your Twig namespace:

```
twig:
    paths:
        '%kernel.project_dir%/src/App/Resources': SomeTwigNamepace
```

Then, you can use :

```
{{ manifestAsset('@SomeTwigNamepace/css/home.css') }}
{{ manifestAssetInline('@SomeTwigNamepace/js/home.js') }}
```

Note: Twig namespace references does not contain separator `:` like bundles. See [this link](https://symfony.com/doc/current/templating/namespaced_paths.html) for more details.

Running tests and linter
------------------------

[](#running-tests-and-linter)

For running tests and linter, there is a complete docker enviroment with php and all required tools. To setup environment use:

```
bin/dev/docker-compose build
bin/dev/composer install

```

To run tests (after environment is built):

```
bin/dev/composer test

```

To run linter:

```
bin/dev/phpcsfixer fix --dry-run .

```

To automaticaly fix coding standards, just ommit `--dry-run` parameter.

Credits
-------

[](#credits)

Copyright (C) 2017 Trikoder

Authors: Alen Pokos, Damir Brekalo, Krešo Kunjas.

Contributors: Branimir Đurek

License
-------

[](#license)

Package is licensed under [MIT License](./LICENSE)

###  Health Score

26

—

LowBetter than 43% of packages

Maintenance20

Infrequent updates — may be unmaintained

Popularity5

Limited adoption so far

Community9

Small or concentrated contributor base

Maturity59

Maturing project, gaining track record

 Bus Factor1

Top contributor holds 100% of commits — single point of failure

How is this calculated?**Maintenance (25%)** — Last commit recency, latest release date, and issue-to-star ratio. Uses a 2-year decay window.

**Popularity (30%)** — Total and monthly downloads, GitHub stars, and forks. Logarithmic scaling prevents top-heavy scores.

**Community (15%)** — Contributors, dependents, forks, watchers, and maintainers. Measures real ecosystem engagement.

**Maturity (30%)** — Project age, version count, PHP version support, and release stability.

###  Release Activity

Cadence

Every ~251 days

Total

2

Last Release

2725d ago

### Community

Maintainers

![](https://www.gravatar.com/avatar/9d6c9b1e763ee9f045c714e8ad045c05b4bd29d5b86b350a2c6d7eede25c78d9?d=identicon)[alenpokos](/maintainers/alenpokos)

---

Top Contributors

[![alenpokos](https://avatars.githubusercontent.com/u/1493829?v=4)](https://github.com/alenpokos "alenpokos (4 commits)")

###  Code Quality

TestsPHPUnit

### Embed Badge

![Health badge](/badges/trikoder-assets-manifest-bundle/health.svg)

```
[![Health](https://phpackages.com/badges/trikoder-assets-manifest-bundle/health.svg)](https://phpackages.com/packages/trikoder-assets-manifest-bundle)
```

###  Alternatives

[codefog/contao-haste

haste extension for Contao Open Source CMS

42650.8k139](/packages/codefog-contao-haste)[netgen/layouts-core

Netgen Layouts enables you to build and manage complex web pages in a simpler way and with less coding. This is the core of Netgen Layouts, its heart and soul.

3689.4k10](/packages/netgen-layouts-core)[netgen/content-browser

Netgen Content Browser is a Symfony bundle that provides an interface which selects items from any kind of backend and returns the IDs of selected items back to the calling code.

14112.1k8](/packages/netgen-content-browser)[spomky-labs/pwa-bundle

Progressive Web App Manifest Generator Bundle for Symfony.

6144.4k1](/packages/spomky-labs-pwa-bundle)[codefog/contao-news_categories

News Categories bundle for Contao Open Source CMS

3183.3k6](/packages/codefog-contao-news-categories)[robole/sulu-ai-translator-bundle

Translate any type of content using DeepL

181.3k](/packages/robole-sulu-ai-translator-bundle)

PHPackages © 2026

[Directory](/)[Categories](/categories)[Trending](/trending)[Changelog](/changelog)[Analyze](/analyze)
