PHPackages                             miguel/assetic-angular-js-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. [Templating &amp; Views](/categories/templating)
4. /
5. miguel/assetic-angular-js-bundle

ActiveSymfony-bundle[Templating &amp; Views](/categories/templating)

miguel/assetic-angular-js-bundle
================================

Assetic filter to output AngularJS templates for the template cache

0.1.3(8y ago)03.4kMITPHPPHP &gt;=5.3.3

Since Nov 27Pushed 8y ago1 watchersCompare

[ Source](https://github.com/MiguelGonzalez/AsseticAngularJsBundle)[ Packagist](https://packagist.org/packages/miguel/assetic-angular-js-bundle)[ Docs](https://github.com/MiguelGonzalez/AsseticAngularJsBundle)[ RSS](/packages/miguel-assetic-angular-js-bundle/feed)WikiDiscussions master Synced 4w ago

READMEChangelogDependencies (1)Versions (6)Used By (0)

AsseticAngularJsBundle
======================

[](#asseticangularjsbundle)

Simple Assetic filter to feed the *$templateCache*.

Installation
============

[](#installation)

```
composer require miguel/assetic-angular-js-bundle
```

Requirements
------------

[](#requirements)

Any Symfony2 2.3+ application will do.

Configuration
=============

[](#configuration)

Edit your `config.yml` and add a section **miguel\_assetic\_angular\_js**:

.. code-block:: yaml miguel\_assetic\_angular\_js: app\_name: app

If you don't do it the default `app_name` will be **app**.

Usage
=====

[](#usage)

Just include the Angular templates as any other javascript resource using the javascripts Twig helper and apply the *angular* filter to them.

```
{% javascripts filter="angular"
    '@BundleName/Resources/views/aTemplate.html'
    '@BundleName/Resources/views/moarTemplates/*.html'
    'assets/app/tpl/contact/contact.html'
    %}

{% endjavascripts %}
```

The resulting output will be something like this:

```
angular.module("app").run(["$templateCache", function($templateCache) {
  $templateCache.put("BundleName/views/aTemplate.html", "HTML here");
}]);
angular.module("app").run(["$templateCache", function($templateCache) {
  $templateCache.put("BundleName/views/fooTemplate.html", "HTML here");
}]);
angular.module("app").run(["$templateCache", function($templateCache) {
  $templateCache.put("assets/app/tpl/contact/contact.html", "HTML here");
}]);
// ...
```

> If the asset is in a bundle then the **Resources/** part is removed.

Now, to use the template a dependency on the module name must be set and after that the template can be retrieved using the templates URL:

```

```

Of course, wherever a template URL can be specified, the above will work as it is in the default AngularJS template cache.

License
=======

[](#license)

MIT

###  Health Score

27

—

LowBetter than 47% of packages

Maintenance20

Infrequent updates — may be unmaintained

Popularity16

Limited adoption so far

Community10

Small or concentrated contributor base

Maturity52

Maturing project, gaining track record

 Bus Factor1

Top contributor holds 50% 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 ~238 days

Total

5

Last Release

3282d ago

### Community

Maintainers

![](https://www.gravatar.com/avatar/1f1ab873798198e4b4f87e2343c3066e83e1430e00a5382507a6edb37b26e916?d=identicon)[miguelgonzalezgomez](/maintainers/miguelgonzalezgomez)

---

Top Contributors

[![padakuro](https://avatars.githubusercontent.com/u/2874813?v=4)](https://github.com/padakuro "padakuro (7 commits)")[![MiguelGonzalez](https://avatars.githubusercontent.com/u/679804?v=4)](https://github.com/MiguelGonzalez "MiguelGonzalez (4 commits)")[![piotr-cz](https://avatars.githubusercontent.com/u/612953?v=4)](https://github.com/piotr-cz "piotr-cz (3 commits)")

---

Tags

templateasseticangular

### Embed Badge

![Health badge](/badges/miguel-assetic-angular-js-bundle/health.svg)

```
[![Health](https://phpackages.com/badges/miguel-assetic-angular-js-bundle/health.svg)](https://phpackages.com/packages/miguel-assetic-angular-js-bundle)
```

###  Alternatives

[phpoffice/phpword

PHPWord - A pure PHP library for reading and writing word processing documents (OOXML, ODF, RTF, HTML, PDF)

7.6k39.0M229](/packages/phpoffice-phpword)[rize/uri-template

PHP URI Template (RFC 6570) supports both expansion &amp; extraction

435149.5M62](/packages/rize-uri-template)[larablocks/pigeon

A more flexible email message builder for Laravel 5 including chained methods, reusable message configurations, and message layout and template view management.

143.7k](/packages/larablocks-pigeon)

PHPackages © 2026

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