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 1w 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 54% 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

4294d 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

[fotografde/cakephp-ftp

FTP/SFTP Plugin for CakePHP

6062.3k](/packages/fotografde-cakephp-ftp)[dereuromark/cakephp-url-cache

CakePHP plugin to speed up URL reverse lookup

24117.2k](/packages/dereuromark-cakephp-url-cache)[loadsys/cakephp_sitemap

A CakePHP Plugin for adding automatic XML and HTML Sitemaps to an app

2819.6k](/packages/loadsys-cakephp-sitemap)[tigrang/cakephp-datatable

CakePHP DataTable Plugin

465.1k](/packages/tigrang-cakephp-datatable)[trentrichardson/cakephp-shrink

Compiles, combines, and minifies javascript, coffee, less, scss, and css

1619.3k](/packages/trentrichardson-cakephp-shrink)

PHPackages © 2026

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