PHPackages                             mmanos/laravel-casset - 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. mmanos/laravel-casset

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

mmanos/laravel-casset
=====================

An asset management package for Laravel 4.

1.4.0(11y ago)102.6k4MITPHPPHP &gt;=5.3.0

Since Feb 2Pushed 9y ago3 watchersCompare

[ Source](https://github.com/mmanos/laravel-casset)[ Packagist](https://packagist.org/packages/mmanos/laravel-casset)[ RSS](/packages/mmanos-laravel-casset/feed)WikiDiscussions master Synced yesterday

READMEChangelog (3)Dependencies (2)Versions (15)Used By (0)

Casset Package for Laravel 4
============================

[](#casset-package-for-laravel-4)

Casset is an asset manager for Laravel 4 applications. Some things it can do:

- Create one or more asset containers.
- Compile less files.
- Combine assets into one file.
- Minify output.
- Accept assets from Laravel package public directories. `"vendor/package::/js/file.js"`
- Define dependencies for an asset.
- Define global dependencies for all assets of the same file type.
- Define an optional CDN for asset URLs.
- Optionally defer processing/combining assets to a controller (useful when distributing page requests across multiple servers).

Installation via Composer
-------------------------

[](#installation-via-composer)

Add this to your composer.json file, in the require object:

```
"mmanos/laravel-casset": "dev-master"
```

After that, run composer install to install Casset.

Add the service provider to `app/config/app.php`, within the `providers` array.

```
'providers' => array(
	// ...
	'Mmanos\Casset\CassetServiceProvider',
)
```

Add a class alias to `app/config/app.php`, within the `aliases` array.

```
'aliases' => array(
	// ...
	'Casset' => 'Mmanos\Casset\Facades\Casset',
)
```

Finally, ensure the cache directory defined in the config file is created and writable by the web server (defaults to public/assets/cache).

```
$ mkdir public/assets/cache
$ chmod -R 777 public/assets/cache
$ touch public/assets/cache/.gitignore
```

Edit public/assets/cache/.gitignore.

```
*
!.gitignore

```

Upgrading to 1.3 from 1.2.x
---------------------------

[](#upgrading-to-13-from-12x)

Simply update the class alias in `app/config/app.php` to point to the new Facade:

```
'aliases' => array(
	// ...
	'Casset' => 'Mmanos\Casset\Facades\Casset',
)
```

Usage
-----

[](#usage)

Add assets to the "default" container:

```
Casset::add('js/jquery.js');
Casset::add('less/layout.less');
```

Add assets to a custom container:

```
Casset::container('layout')->add('js/jquery.js');
Casset::container('layout')->add('less/layout.less');
```

Add an asset with a dependency on another asset:

```
Casset::add('less/variables.less');
Casset::add('less/layout.less', array(), array('less/variables.less'));
```

Add a global dependency for all assets (of the same file type):

```
Casset::dependency('less/variables.less');
Casset::container('layout')->dependency('less/variables.less');
```

Add assets from a composer package (vendorName/packageName):

```
Casset::add('frameworks/jquery::/jquery.min.js');
```

Render HTML tags to load assets for a container:

```
{{ Casset::container('default')->styles() }}
{{ Casset::container('layout')->scripts() }}
```

Generate a URL to an asset on the CDN server:

```

```

###  Health Score

34

—

LowBetter than 77% of packages

Maintenance20

Infrequent updates — may be unmaintained

Popularity24

Limited adoption so far

Community13

Small or concentrated contributor base

Maturity66

Established project with proven stability

 Bus Factor1

Top contributor holds 91.4% 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 ~21 days

Recently: every ~51 days

Total

14

Last Release

4199d ago

### Community

Maintainers

![](https://avatars.githubusercontent.com/u/972055?v=4)[Mark Manos](/maintainers/mmanos)[@mmanos](https://github.com/mmanos)

---

Top Contributors

[![mmanos](https://avatars.githubusercontent.com/u/972055?v=4)](https://github.com/mmanos "mmanos (32 commits)")[![dmyers](https://avatars.githubusercontent.com/u/207171?v=4)](https://github.com/dmyers "dmyers (3 commits)")

---

Tags

laraveljavascriptcsscompressionlessassetsminificationasset

### Embed Badge

![Health badge](/badges/mmanos-laravel-casset/health.svg)

```
[![Health](https://phpackages.com/badges/mmanos-laravel-casset/health.svg)](https://phpackages.com/packages/mmanos-laravel-casset)
```

###  Alternatives

[stolz/assets

An ultra-simple-to-use assets management library

296519.2k8](/packages/stolz-assets)[efficiently/larasset

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

684.8k](/packages/efficiently-larasset)[fisharebest/laravel-assets

Asset management for Laravel

208.1k](/packages/fisharebest-laravel-assets)[dotsunited/bundlefu

BundleFu is a PHP 5.3+ library which bundles multiple css/javascript files into a big package and sends it out at once

7028.5k3](/packages/dotsunited-bundlefu)[ishanvyas22/asset-mix

Asset Mix plugin for CakePHP

3375.4k2](/packages/ishanvyas22-asset-mix)[efficiently/jquery-laravel

This package provides jQuery and the jQuery-ujs driver for your Laravel &gt;= 6 application.

1311.0k1](/packages/efficiently-jquery-laravel)

PHPackages © 2026

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