PHPackages                             maurymmarques/minify-cakephp - 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. maurymmarques/minify-cakephp

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

maurymmarques/minify-cakephp
============================

A CakePHP plugin that facilitates the use of PHP Minify with CakePHP

591.3k20[1 PRs](https://github.com/maurymmarques/minify-cakephp/pulls)PHP

Since Sep 6Pushed 5y ago12 watchersCompare

[ Source](https://github.com/maurymmarques/minify-cakephp)[ Packagist](https://packagist.org/packages/maurymmarques/minify-cakephp)[ RSS](/packages/maurymmarques-minify-cakephp/feed)WikiDiscussions master Synced today

READMEChangelogDependenciesVersions (1)Used By (0)

Minify plugin for CakePHP
=========================

[](#minify-plugin-for-cakephp)

This plugin was developed to facilitate Minify use with CakePHP

[Minify](https://github.com/mrclay/minify) is an application that combines multiple CSS or Javascript files, removes unnecessary whitespace and comments, and serves them with gzip encoding and optimal client-side cache headers.

More info:

For this plugin, the Minify application is inside Vendor

### Version

[](#version)

Written for CakePHP 2.x

### Copyright

[](#copyright)

Copyright (c) 2011 Maury M. Marques

Installation
------------

[](#installation)

You can install this plugin using Composer, GIT Submodule, GIT Clone or Manually

*\[Using [Composer](http://getcomposer.org/)\]*

Add the plugin to your project's `composer.json` - something like this:

```
{
  "require": {
    "maurymmarques/minify-plugin": "dev-master"
  },
  "extra": {
		"installer-paths": {
			"app/Plugin/Minify": ["maurymmarques/minify-plugin"]
		}
	}
}
```

Then just run `composer install`

Because this plugin has the type `cakephp-plugin` set in it's own `composer.json`, composer knows to install it inside your `/Plugin` directory, rather than in the usual vendors file.

*\[GIT Submodule\]*

In your app directory (`app/Plugin`) type:

```
git submodule add git://github.com/maurymmarques/minify-cakephp.git Plugin/Minify
git submodule init
git submodule update
```

*\[GIT Clone\]*

In your plugin directory (`app/Plugin` or `plugins`) type:

```
git clone https://github.com/maurymmarques/minify-cakephp.git Minify
```

*\[Manual\]*

- Download the [Minify archive](https://github.com/maurymmarques/minify-cakephp/archive/master.zip).
- Unzip that download.
- Rename the resulting folder to `Minify`
- Then copy this folder into `app/Plugin/` or `plugins`

Configuration
-------------

[](#configuration)

Bootstrap the plugin in app/Config/bootstrap.php:

```
CakePlugin::load(array('Minify' => array('routes' => true)));
```

Set the configuration file in your app/Config/core.php

```
Configure::write('MinifyAsset', true);
```

If you do not want to use compression, set `false`.

### Note

[](#note)

Create a folder called **"minify"** in `app/tmp/cache` and give it permission to **read** and **write**.

Usage
-----

[](#usage)

Enable the helper using the [plugin syntax](http://book.cakephp.org/2.0/en/appendices/glossary.html#term-plugin-syntax)

```
class BakeriesController extends AppController {
    public $helpers = array('Minify.Minify');
}
```

This plugin uses [HtmlHelper](http://book.cakephp.org/2.0/en/core-libraries/helpers/html.html), and virtually it works in the same way.

In the view you can use something like:

```
echo $this->Minify->css(array('default', 'global'));
echo $this->Minify->script(array('jquery', 'interface'));
```

###  Health Score

27

—

LowBetter than 49% of packages

Maintenance20

Infrequent updates — may be unmaintained

Popularity30

Limited adoption so far

Community20

Small or concentrated contributor base

Maturity32

Early-stage or recently created project

 Bus Factor1

Top contributor holds 89.1% 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.

### Community

Maintainers

![](https://www.gravatar.com/avatar/637933d952b260bfeeaf8ec8fda92a5acf7eda16df6044fe840f782058a4c7ae?d=identicon)[Ali1](/maintainers/Ali1)

---

Top Contributors

[![maurymmarques](https://avatars.githubusercontent.com/u/338086?v=4)](https://github.com/maurymmarques "maurymmarques (49 commits)")[![lethal-guitar](https://avatars.githubusercontent.com/u/1821027?v=4)](https://github.com/lethal-guitar "lethal-guitar (3 commits)")[![johnjcamilleri](https://avatars.githubusercontent.com/u/376723?v=4)](https://github.com/johnjcamilleri "johnjcamilleri (1 commits)")[![manobi](https://avatars.githubusercontent.com/u/82986?v=4)](https://github.com/manobi "manobi (1 commits)")[![pedroventura](https://avatars.githubusercontent.com/u/797690?v=4)](https://github.com/pedroventura "pedroventura (1 commits)")

### Embed Badge

![Health badge](/badges/maurymmarques-minify-cakephp/health.svg)

```
[![Health](https://phpackages.com/badges/maurymmarques-minify-cakephp/health.svg)](https://phpackages.com/packages/maurymmarques-minify-cakephp)
```

###  Alternatives

[ishanvyas22/asset-mix

Asset Mix plugin for CakePHP

3375.4k2](/packages/ishanvyas22-asset-mix)[prgayman/laravel-zatca

Laravel package a helper to Generate the QR code and signed it for ZATCA E-invoicing

2926.9k1](/packages/prgayman-laravel-zatca)[ducks-project/spl-types

Polyfill Module for SplType PHP extension. This extension aims at helping people making PHP a stronger typed language and can be a good alternative to scalar type hinting. It provides different typehandling classes as such as integer, float, bool, enum and string

1032.4k](/packages/ducks-project-spl-types)

PHPackages © 2026

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