PHPackages                             evalok/php-assetify - 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. evalok/php-assetify

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

evalok/php-assetify
===================

extremely simple to use wrapper for basic Assetic usage

0.4.0(9y ago)083MITPHPPHP &gt;=5.4.0

Since Aug 7Pushed 9y ago1 watchersCompare

[ Source](https://github.com/EvaLok/php-assetify)[ Packagist](https://packagist.org/packages/evalok/php-assetify)[ RSS](/packages/evalok-php-assetify/feed)WikiDiscussions master Synced 1mo ago

READMEChangelog (4)Dependencies (2)Versions (5)Used By (0)

[![Build Status](https://camo.githubusercontent.com/13517c1bf12b998ae40279dfad29d5a0935b4f5171612ef9896c284c1cb730f7/68747470733a2f2f7472617669732d63692e6f72672f4576614c6f6b2f7068702d61737365746966792e7376673f6272616e63683d6d6173746572)](https://travis-ci.org/EvaLok/php-assetify)

Assetify
========

[](#assetify)

extremely simple to use wrapper for basic Assetic usage

provides an easy solution for asset consolidation / minification and js deferral

you may want to consider using this in conjunction with `ModPagespeed`, in particular its css deferring functionality is pretty nice

install
=======

[](#install)

component
---------

[](#component)

`composer require evalok/php-assetify`

filter dependencies
-------------------

[](#filter-dependencies)

install Assetic filter dependencies are may be necessary; if you're unsure of how to do this, you can simply use the demo filters listed below

demo filters
------------

[](#demo-filters)

- `sudo npm install -g uglifycss`
- `sudo npm install -g uglify-js`

demo dependencies
-----------------

[](#demo-dependencies)

- (from project root) `cd demo && bower install`

example usage
=============

[](#example-usage)

working example
---------------

[](#working-example)

minify css
----------

[](#minify-css)

```
echo $ac->getGroupAsset(
	'css',
	__DIR__ . '/assets/minified-css',
	'/assets/',
	'css'
);
```

minify js
---------

[](#minify-js)

```
echo $ac->getGroupAsset(
	'js',
	__DIR__ . '/assets/minified-js',
	'/assets/',
	'js'
);
```

minify and defer js
-------------------

[](#minify-and-defer-js)

```
echo $ac->getGroupAssetDeferred(
	'deferred-js',
	__DIR__ . '/assets/deferred-minified-js',
	'/assets/',
	'js'
);
```

tests
=====

[](#tests)

- (from project)`vendor/bin/phpspec run`

TODO
====

[](#todo)

- @todo: more tests
- @todo: garbage collection

###  Health Score

24

—

LowBetter than 32% of packages

Maintenance20

Infrequent updates — may be unmaintained

Popularity9

Limited adoption so far

Community7

Small or concentrated contributor base

Maturity51

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

Total

4

Last Release

3626d ago

### Community

Maintainers

![](https://www.gravatar.com/avatar/822cd4d14c0e09fac815b9ddde20bfc4aa691fd5e7a4fecff5eca1bd09acf37e?d=identicon)[EvaLok](/maintainers/EvaLok)

---

Top Contributors

[![EvaLok](https://avatars.githubusercontent.com/u/12283250?v=4)](https://github.com/EvaLok "EvaLok (38 commits)")

---

Tags

httpsasseticasset managementcpanelmod\_spdy

### Embed Badge

![Health badge](/badges/evalok-php-assetify/health.svg)

```
[![Health](https://phpackages.com/badges/evalok-php-assetify/health.svg)](https://phpackages.com/packages/evalok-php-assetify)
```

PHPackages © 2026

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