PHPackages                             asoc/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. asoc/assetic-angular-js-bundle

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

asoc/assetic-angular-js-bundle
==============================

Assetic filter to output AngularJS templates for the template cache

0.1.0(11y ago)722.3k5[1 issues](https://github.com/AStateOfCode/AsseticAngularJsBundle/issues)[1 PRs](https://github.com/AStateOfCode/AsseticAngularJsBundle/pulls)MITPHPPHP &gt;=5.3.3

Since Nov 27Pushed 11y agoCompare

[ Source](https://github.com/AStateOfCode/AsseticAngularJsBundle)[ Packagist](https://packagist.org/packages/asoc/assetic-angular-js-bundle)[ Docs](https://github.com/AStateOfCode/AsseticAngularJsBundle)[ RSS](/packages/asoc-assetic-angular-js-bundle/feed)WikiDiscussions master Synced 3d ago

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

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

[](#asseticangularjsbundle)

Simple Assetic filter to feed the *$templateCache*.

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

[](#installation)

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

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

[](#requirements)

Any Symfony2 2.3+ application will do.

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

[](#configuration)

None at the moment :)

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.ng'
    '@BundleName/Resources/views/fooTemplate.html.ng'
    '@BundleName/Resources/views/moarTemplates/*.html.ng'
    %}

{% endjavascripts %}
```

The resulting output will be something like this:

```
angular.module("BundleName.templates").run(["$templateCache", function($templateCache) {
  $templateCache.put("BundleName/aTemplate.html", "HTML here");
}]);
angular.module("BundleName.templates").run(["$templateCache", function($templateCache) {
  $templateCache.put("BundleName/fooTemplate.html", "HTML here");
}]);
angular.module("BundleName.templates").run(["$templateCache", function($templateCache) {
  $templateCache.put("BundleName/moarTemplates/bar.html", "HTML here");
}]);
// ...
```

The **.ng** extension is just a convention and can be changed at will. Also, the removal of the **Resources/views/** part is just by the symfony2 convention which can be changed by implementing a custom template name formatter. 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

30

—

LowBetter than 64% of packages

Maintenance17

Infrequent updates — may be unmaintained

Popularity30

Limited adoption so far

Community11

Small or concentrated contributor base

Maturity49

Maturing project, gaining track record

 Bus Factor1

Top contributor holds 70% 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 ~0 days

Total

2

Last Release

4187d ago

### Community

Maintainers

![](https://www.gravatar.com/avatar/98b7d41119ffd00cfc817eb050fd5965989014f60c08d52dbee29098c3cc9acf?d=identicon)[padakuro](/maintainers/padakuro)

---

Top Contributors

[![padakuro](https://avatars.githubusercontent.com/u/2874813?v=4)](https://github.com/padakuro "padakuro (7 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/asoc-assetic-angular-js-bundle/health.svg)

```
[![Health](https://phpackages.com/badges/asoc-assetic-angular-js-bundle/health.svg)](https://phpackages.com/packages/asoc-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.5k34.7M186](/packages/phpoffice-phpword)[rize/uri-template

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

420137.3M46](/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)
