PHPackages                             markstory/asset\_compress - 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. markstory/asset\_compress

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

markstory/asset\_compress
=========================

An asset compression plugin for CakePHP. Provides file concatenation and a flexible filter system for preprocessing and minification.

5.0.3(5mo ago)3761.0M↑12.8%124[25 issues](https://github.com/markstory/asset_compress/issues)[1 PRs](https://github.com/markstory/asset_compress/pulls)11MITPHPPHP &gt;=8.1.0CI failing

Since Mar 20Pushed 5mo ago28 watchersCompare

[ Source](https://github.com/markstory/asset_compress)[ Packagist](https://packagist.org/packages/markstory/asset_compress)[ Docs](https://github.com/markstory/asset_compress)[ RSS](/packages/markstory-asset-compress/feed)WikiDiscussions 5.x Synced 1mo ago

READMEChangelog (10)Dependencies (6)Versions (54)Used By (11)

Asset Compress
==============

[](#asset-compress)

[![Build Status](https://camo.githubusercontent.com/e42d5d0fbbe21a996a7ea7fd779c4d428b8f853ae67c05191ebc0d25e88e8156/68747470733a2f2f7472617669732d63692e6f72672f6d61726b73746f72792f61737365745f636f6d70726573732e7376673f6272616e63683d6d6173746572)](https://travis-ci.org/markstory/asset_compress)[![codecov.io](https://camo.githubusercontent.com/3e9989b4c61e8d0c3d9374797076b0cd9ee1d7f26bf6d42c80a8535dfa04d03a/68747470733a2f2f636f6465636f762e696f2f6769746875622f6d61726b73746f72792f61737365745f636f6d70726573732f636f7665726167652e7376673f6272616e63683d6d6173746572)](https://codecov.io/github/markstory/asset_compress?branch=master)[![Total Downloads](https://camo.githubusercontent.com/140867946e7cf12d6b8b2386aa053ec336258e034eee7a9f738348a8c84936bb/68747470733a2f2f696d672e736869656c64732e696f2f7061636b61676973742f64742f6d61726b73746f72792f61737365745f636f6d70726573732e7376673f7374796c653d666c61742d737175617265)](https://packagist.org/packages/markstory/asset_compress)[![License](https://camo.githubusercontent.com/942e017bf0672002dd32a857c95d66f28c5900ab541838c6c664442516309c8a/68747470733a2f2f696d672e736869656c64732e696f2f62616467652f6c6963656e73652d4d49542d626c75652e7376673f7374796c653d666c61742d737175617265)](LICENSE)

Asset Compress is CakePHP plugin for helping reduce the number of requests, and optimizing the remaining requests your application makes for Javascript and CSS files.

### Features

[](#features)

- Development mode builder that rebuilds assets on each request.
- Command line build tool to compile static assets for deployment.
- Built-in support for LESScss, Sass and CoffeeScript, as well as several minifiers.
- Powerful and flexible filter system allowing you to add your own minifiers/pre-processors.
- Simple configuration file.
- Incremental builds that don't recompile assets when they don't need to be.

Installing
----------

[](#installing)

Add this plugin to your application with composer:

```
php composer.phar require markstory/asset_compress

```

Then make sure you load the plugin:

```
// in src/Application.php
// in the bootstrap() method add
$this->addPlugin('AssetCompress');

```

Copy the `config/asset_compress.sample.ini` from the plugin to your app's `config/asset_compress.ini`. From there read the [wiki](http://github.com/markstory/asset_compress/wiki)for more information.

Documentation
-------------

[](#documentation)

Documentation for AssetCompress is available on the [github wiki pages](http://github.com/markstory/asset_compress/wiki)

Issues
------

[](#issues)

Please report any issues you have with the plugin to the [issue tracker](http://github.com/markstory/asset_compress/issues) on github.

License
-------

[](#license)

Asset Compress is offered under an [MIT license](http://www.opensource.org/licenses/mit-license.php).

### Authors

[](#authors)

See the [github contributors list](https://github.com/markstory/asset_compress/graphs/contributors)

### Changelog

[](#changelog)

See CHANGELOG for changes only available on `master`. See [github releases](https://github.com/markstory/asset_compress/releases) for changelogs on previous releases.

###  Health Score

66

—

FairBetter than 99% of packages

Maintenance67

Regular maintenance activity

Popularity60

Solid adoption and visibility

Community41

Growing community involvement

Maturity85

Battle-tested with a long release history

 Bus Factor1

Top contributor holds 79.3% 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 ~92 days

Recently: every ~195 days

Total

51

Last Release

179d ago

Major Versions

0.21 → 3.1.02016-08-25

0.25 → 3.3.02018-04-28

0.26 → 3.5.02018-12-20

3.x-dev → 4.0.02019-12-17

4.x-dev → 5.0.02023-09-29

PHP version history (3 changes)v0.8PHP &gt;=5.3.0

4.0.0PHP &gt;=7.2.0

5.0.0PHP &gt;=8.1.0

### Community

Maintainers

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

---

Top Contributors

[![markstory](https://avatars.githubusercontent.com/u/24086?v=4)](https://github.com/markstory "markstory (751 commits)")[![Phally](https://avatars.githubusercontent.com/u/112639?v=4)](https://github.com/Phally "Phally (21 commits)")[![ADmad](https://avatars.githubusercontent.com/u/142658?v=4)](https://github.com/ADmad "ADmad (19 commits)")[![evilbloodydemon](https://avatars.githubusercontent.com/u/39753?v=4)](https://github.com/evilbloodydemon "evilbloodydemon (18 commits)")[![renan](https://avatars.githubusercontent.com/u/28046?v=4)](https://github.com/renan "renan (17 commits)")[![WyriHaximus](https://avatars.githubusercontent.com/u/147145?v=4)](https://github.com/WyriHaximus "WyriHaximus (15 commits)")[![jadb](https://avatars.githubusercontent.com/u/33527?v=4)](https://github.com/jadb "jadb (11 commits)")[![Codaxis](https://avatars.githubusercontent.com/u/6729928?v=4)](https://github.com/Codaxis "Codaxis (10 commits)")[![skie](https://avatars.githubusercontent.com/u/130799?v=4)](https://github.com/skie "skie (10 commits)")[![dereuromark](https://avatars.githubusercontent.com/u/39854?v=4)](https://github.com/dereuromark "dereuromark (8 commits)")[![rynop](https://avatars.githubusercontent.com/u/372730?v=4)](https://github.com/rynop "rynop (8 commits)")[![fullybaked](https://avatars.githubusercontent.com/u/527122?v=4)](https://github.com/fullybaked "fullybaked (7 commits)")[![afolgado](https://avatars.githubusercontent.com/u/1505996?v=4)](https://github.com/afolgado "afolgado (6 commits)")[![lorenzo](https://avatars.githubusercontent.com/u/37621?v=4)](https://github.com/lorenzo "lorenzo (5 commits)")[![dinhani](https://avatars.githubusercontent.com/u/1139781?v=4)](https://github.com/dinhani "dinhani (5 commits)")[![adamroyle](https://avatars.githubusercontent.com/u/25002779?v=4)](https://github.com/adamroyle "adamroyle (4 commits)")[![jeremyharris](https://avatars.githubusercontent.com/u/184903?v=4)](https://github.com/jeremyharris "jeremyharris (3 commits)")[![ajfranzoia](https://avatars.githubusercontent.com/u/964115?v=4)](https://github.com/ajfranzoia "ajfranzoia (3 commits)")[![jiru](https://avatars.githubusercontent.com/u/5107734?v=4)](https://github.com/jiru "jiru (3 commits)")[![thomseddon](https://avatars.githubusercontent.com/u/747138?v=4)](https://github.com/thomseddon "thomseddon (3 commits)")

---

Tags

asset-pipelinecakephpcakephp-pluginphpcakephpminifiersasslessassetscoffee-script

###  Code Quality

TestsPHPUnit

### Embed Badge

![Health badge](/badges/markstory-asset-compress/health.svg)

```
[![Health](https://phpackages.com/badges/markstory-asset-compress/health.svg)](https://phpackages.com/packages/markstory-asset-compress)
```

###  Alternatives

[markstory/mini-asset

An asset compression library. Provides file concatenation and a flexible filter system for preprocessing and minification.

66741.1k3](/packages/markstory-mini-asset)[ishanvyas22/asset-mix

Asset Mix plugin for CakePHP

3375.4k2](/packages/ishanvyas22-asset-mix)[scssphp/scssphp

scssphp is a compiler for SCSS written in PHP.

62827.7M220](/packages/scssphp-scssphp)[dereuromark/cakephp-tools

A CakePHP plugin containing lots of useful and reusable tools

338920.1k32](/packages/dereuromark-cakephp-tools)[trentrichardson/cakephp-shrink

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

1619.3k](/packages/trentrichardson-cakephp-shrink)[efficiently/larasset

Larasset is a library for Laravel 5 which manage assets in an easy way.

684.8k](/packages/efficiently-larasset)

PHPackages © 2026

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