PHPackages                             dhardtke/assetie - 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. dhardtke/assetie

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

dhardtke/assetie
================

210PHP

Since Mar 23Pushed 12y ago1 watchersCompare

[ Source](https://github.com/dhardtke/assetie)[ Packagist](https://packagist.org/packages/dhardtke/assetie)[ RSS](/packages/dhardtke-assetie/feed)WikiDiscussions master Synced 2d ago

READMEChangelogDependenciesVersions (1)Used By (0)

\#Assetie

What is Assetie?
----------------

[](#what-is-assetie)

Assetie is my laravel package for managing assets in Laravel 4. It uses [Kris Wallsmith's](https://github.com/kriswallsmith) great Assetic for it's minifying and compressing of asset files.

**This package is still wip, that means it is in an early stage and needs much work that has to be done until Assetie can be used in a production environment!**

### Why another Asset Management Package for Laravel 4?

[](#why-another-asset-management-package-for-laravel-4)

I tried several products over time and wasn't happy with them at all.

All I've wanted was a package which would be easy to use, clean and fast at the same time.

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

[](#installation)

1. Require Assetie by adding it to the "require" key of the composer.json file:

    ```
     "dhardtke/assetie": "dev-master"

    ```

    Run "composer update" to update all your dependencies and install Assetie.
2. Include Assetie in your Laravel project by adding it to the app's config:

    In **app/config/app.php**:

    - `'Dhardtke\Assetie\AssetieServiceProvider'` to the `'providers'` array
    - `'Collection'         => 'Dhardtke\Assetie\Facades\Collection'` to the `aliases` array

That's it! Now you can start managing your assets.

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

[](#configuration)

Run `php artisan config:publish dhardtke/assetie` from the command line in your Laravel installation directory to publish Assetie's config file.

Then you can edit **app/config/packages/dhardtke/assetie/config.php** as follows:

---

### Filters

[](#filters)

```
'filters' => array(
	'.min.js' => array(
	),
	'.min.css' => array(
		new \Assetic\Filter\CssRewriteFilter,
		$uglifyCss,
		new \Assetic\Filter\PhpCssEmbedFilter
	),
	'.js' => array(
		$JSqueeze
	),
	'.less'	=> array(
		$lessFilter,
		$uglifyCss
	),
	'.css' => array(
		new \Assetic\Filter\CssRewriteFilter,
		$uglifyCss,
		new \Assetic\Filter\PhpCssEmbedFilter
	),
)

```

Add specific Assetic filters to certain extensions. See the appropriate [Assetic filters overview](https://github.com/kriswallsmith/assetic#filters) for more details.

### Directories

[](#directories)

```
'directories'    => array(
	'javascripts'	=> 'assets/javascripts',
	'stylesheets'	=> 'assets/stylesheets'
),

```

These are the directories where Assetie will look for it's JavaScript and Stylesheet-Files. If you want to change them, you can do it here. *These paths are relative to the app path.*

### Build Path

[](#build-path)

```
'build_path'    => 'builds',

```

If you want, you can change the directory where Assetie will store it's builds. By default it is set to app\_public() . /builds, but if you want you can change it here.

*This path is always relative to the public path of Laravel*

Usage
-----

[](#usage)

Create a file called **collections.php** next to your **routes.php**. That file will be automatically included by Assetie and holds your Asset Collections.

### Define your first collection

[](#define-your-first-collection)

To create your own, first collection you have to use the following code inside of your collections.php:

```
Collection::addCollection("base", function($collection) {
    $collection->add([
		"style.css",
        "base.js"
	]);
});

```

You can now start using this collection by calling this function in your template (typically in your ``):

```
{{ Collection::stylesheets("base"}}
{{ Collection::javascripts("base"}}

```

### Defining a collection that uses the base collection

[](#defining-a-collection-that-uses-the-base-collection)

If you now want to have a new collection that inherits the base collection, you can do it like this:

```
Collection::addCollection("portal", function($collection) {
    $collection->includeCollection("base")
	 ->add("portal.css");
});

```

###  Health Score

21

—

LowBetter than 19% of packages

Maintenance20

Infrequent updates — may be unmaintained

Popularity8

Limited adoption so far

Community7

Small or concentrated contributor base

Maturity41

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.

### Community

Maintainers

![](https://www.gravatar.com/avatar/43e2a09ca3507d0ea1fb1477cbb71e93c7d8a87b58ef27ea882e4a3169b15c87?d=identicon)[dhardtke](/maintainers/dhardtke)

---

Top Contributors

[![dhardtke](https://avatars.githubusercontent.com/u/1360135?v=4)](https://github.com/dhardtke "dhardtke (5 commits)")

### Embed Badge

![Health badge](/badges/dhardtke-assetie/health.svg)

```
[![Health](https://phpackages.com/badges/dhardtke-assetie/health.svg)](https://phpackages.com/packages/dhardtke-assetie)
```

###  Alternatives

[symfony/polyfill-php73

Symfony polyfill backporting some PHP 7.3+ features to lower PHP versions

2.4k581.8M67](/packages/symfony-polyfill-php73)[casinelli/currency

Handles currency for Laravel 5.

1911.8k](/packages/casinelli-currency)

PHPackages © 2026

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