PHPackages                             galvani/coffee-closure - 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. galvani/coffee-closure

ActiveLibrary[Utility &amp; Helpers](/categories/utility)

galvani/coffee-closure
======================

0.2.4(13y ago)018MITPHP

Since Mar 25Pushed 13y ago1 watchersCompare

[ Source](https://github.com/galvani/coffee-closure)[ Packagist](https://packagist.org/packages/galvani/coffee-closure)[ RSS](/packages/galvani-coffee-closure/feed)WikiDiscussions master Synced 3w ago

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

coffee-closure
==============

[](#coffee-closure)

Symfony 2 bundle for coffee script support and google closure support

This package is dependent Michael's Bolin's coffee-script compiler

INSTALL
=======

[](#install)

add these lines to composer.json:

```
"repositories": {
            "bolinfest/coffee-script": {

                    "type": "package",
                    "package": {
                            "name": "bolinfest/coffee-script",
                            "version": "1.1",
                            "source": {
                                    "url": "https://github.com/bolinfest/coffee-script.git",
                                    "type": "git",
                                    "reference": "origin/1.1.0"
                            }
                    }
            }
    }

```

register bundle in your AppKernel:

```
new Galvani\CoffeeClosureBundle\CoffeeClosureBundle()

```

add configuration options to your config:

```
coffee_closure:
	bin: "/usr/bin/env coffee"
	closure: "src/Galvani/PocketBoyBundle/Resources/public/js/"
	src: "src/Galvani/PocketBoyBundle/Resources/public/coffee"
	bundles: [ "GalvaniPocketBoyBundle" ]

```

The bundle will scan Resources/public/coffee and compile all .coffee files in Resources/public/js

Example of application entry point, which needs to be inside the Resources/public/js:
-------------------------------------------------------------------------------------

[](#example-of-application-entry-point-which-needs-to-be-inside-the-resourcespublicjs)

app.js:

```
goog.provide('app.start');

goog.require('goog.dom');
goog.require('pocketboy');

app.start = function() {
  var pocketboyApplication = new pocketboy();
  pocketboyApplication.start();
};

// Ensures the symbol will be visible after compiler renaming.
goog.exportSymbol('app.start', app.start);

```

and in you html simply add:

```
goog.require('app.start'); app.start();

```

twig example using assetic:

```

```

###  Health Score

25

—

LowBetter than 36% of packages

Maintenance20

Infrequent updates — may be unmaintained

Popularity6

Limited adoption so far

Community7

Small or concentrated contributor base

Maturity57

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 ~3 days

Total

5

Last Release

4826d ago

### Community

Maintainers

![](https://avatars.githubusercontent.com/u/556426?v=4)[Jan Kozak](/maintainers/galvani)[@galvani](https://github.com/galvani)

---

Top Contributors

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

---

Tags

symfonyclosurecoffeecoffeescriptcoffee-scriptgoogle closure

### Embed Badge

![Health badge](/badges/galvani-coffee-closure/health.svg)

```
[![Health](https://phpackages.com/badges/galvani-coffee-closure/health.svg)](https://phpackages.com/packages/galvani-coffee-closure)
```

###  Alternatives

[gwk/dynamo-session-bundle

DynamoDB Session Handler Bundle for Symfony 2

13210.9k](/packages/gwk-dynamo-session-bundle)[padam87/address-bundle

Symfony2 AddressBundle

1013.2k](/packages/padam87-address-bundle)

PHPackages © 2026

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