PHPackages                             gourmet/assetic - 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. gourmet/assetic

ActiveCakephp-plugin[Utility &amp; Helpers](/categories/utility)

gourmet/assetic
===============

Assetic for CakePHP 3

0.2.3(11y ago)4183MITPHP

Since May 13Pushed 11y ago1 watchersCompare

[ Source](https://github.com/gourmet/assetic)[ Packagist](https://packagist.org/packages/gourmet/assetic)[ Docs](http://github.com/gourmet/assetic)[ RSS](/packages/gourmet-assetic/feed)WikiDiscussions master Synced 3w ago

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

Assetic for CakePHP
===================

[](#assetic-for-cakephp)

Built to seamlessly integrate [Assetic](https://github.com/kriswallsmith/assetic) with [CakePHP](http://cakephp.org).

**This is an unstable repository and should be treated as an alpha.**

**UPDATE: Now that [@mark\_story](http://twitter.com/mark_story) has released [markstory/asset\_compress](http://github.com/markstory/asset_compress), I have stopped actively developing this plugin.**

Install
-------

[](#install)

```
composer require gourmet/assetic:*

```

or by adding this package to your project's `composer.json`:

```
"require": {
	"gourmet/assetic": "*"
}

```

Usage
-----

[](#usage)

The `AsseticHelper` methods work somewhat like their `HtmlHelper` counter-parts but with some added options.

The methods are:

- **css**(*$path*, *$options*)
- **image**(*$path*, *$options*)
- **script**(\_$url, *$options*)

The added `$options` keys are:

- **debug**: *boolean* Defaults to app's configuration `debug` value.
- **output**: *string* Name of the Assetic created asset.
- **filters**: *array|string* Filter(s) to use. Defaults to the configured filters for the asset type (css, image, js).

The `$path` passed to `css()` and the `$url` passed to `script` can be passed as a string or as an associative array (see examples below).

Examples
--------

[](#examples)

```
echo $this->Assetic->css('cake.generic', ['debug' => false, 'filters' => 'cssmin']);
echo $this->Assetic->css(['cake.generic' => 'cssmin'], ['debug' => false]);
echo $this->Assetic->css('cake.generic');
```

All the above examples will have the same result, including the minified version of `cake.generic.css`. For the last example, it is assumed that the value of the `Assetic.cssFilters` configuration contains at least the `cssmin` key.

```
$this->Assetic->css('cake.generic', ['filters' => 'cssmin,?uglify']);
```

In the above example, when in debug mode, only the `cssmin` filter will be run.

###  Health Score

28

—

LowBetter than 52% of packages

Maintenance20

Infrequent updates — may be unmaintained

Popularity15

Limited adoption so far

Community9

Small or concentrated contributor base

Maturity56

Maturing project, gaining track record

 Bus Factor1

Top contributor holds 80% 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 ~31 days

Total

4

Last Release

4339d ago

### Community

Maintainers

![](https://www.gravatar.com/avatar/ccb57ae849b67ade8d9c1e266bc2868183bbcf07fb6c66c2d45254a452272d54?d=identicon)[jadb](/maintainers/jadb)

---

Top Contributors

[![jadb](https://avatars.githubusercontent.com/u/33527?v=4)](https://github.com/jadb "jadb (4 commits)")[![ADmad](https://avatars.githubusercontent.com/u/142658?v=4)](https://github.com/ADmad "ADmad (1 commits)")

---

Tags

cakephpassetic

### Embed Badge

![Health badge](/badges/gourmet-assetic/health.svg)

```
[![Health](https://phpackages.com/badges/gourmet-assetic/health.svg)](https://phpackages.com/packages/gourmet-assetic)
```

###  Alternatives

[helsingborg-stad/municipio

A bootstrap theme for creating municipality sites.

4028.5k10](/packages/helsingborg-stad-municipio)[mediawiki/maps

Adds various mapping features to MediaWiki

84152.3k3](/packages/mediawiki-maps)[starcitizentools/citizen-skin

A beautiful, usable, responsive MediaWiki skin with in-depth extension support. Originally developed for the Star Citizen Wiki.

3376.6k](/packages/starcitizentools-citizen-skin)[civicrm/civicrm-drupal-8

Open source constituent relationship management for non-profits, NGOs and advocacy organizations.

19251.4k3](/packages/civicrm-civicrm-drupal-8)[altis/core

Core module for Altis

19228.0k3](/packages/altis-core)[pfefferle/wordpress-activitypub

The ActivityPub protocol is a decentralized social networking protocol based upon the ActivityStreams 2.0 data format.

5721.7k4](/packages/pfefferle-wordpress-activitypub)

PHPackages © 2026

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