explaingit

kriswallsmith/assetic

Analysis updated 2026-07-03

3,718PHPAudience · developerComplexity · 3/5Setup · moderate

TLDR

A PHP library that manages web assets by combining CSS and JavaScript files, compiling LESS and SASS into plain CSS, and minifying output, no longer actively maintained, with development continuing at assetic/framework.

Mindmap

mindmap
  root((Assetic))
    Asset types
      CSS files
      JavaScript
      LESS and SASS
    Processing
      Compile to CSS
      Minify output
      Combine files
    Usage modes
      Direct code API
      Named managers
      Asset factory
    Features
      Cache busting
      Debug mode
      Static file output
Click or tap to explore — scroll the page freely

Code map

Detail Auto

An interactive map of this repo's files and how they connect — its source is parsed live in your browser. Click Visualize to build it.

filefunction / class

What do people build with it?

USE CASE 1

Combine and minify CSS and JavaScript files in a PHP web application to reduce page load time.

USE CASE 2

Compile LESS or SASS stylesheets into plain CSS automatically as part of a PHP build process.

USE CASE 3

Generate cache-busting file names that force browsers to load fresh CSS and JS after each deployment.

What is it built with?

PHPLESSSASSJavaScriptCoffeeScriptTypeScript

How does it compare?

kriswallsmith/asseticopenai-php/laravelcrinsane/laravelshoppingcart
Stars3,7183,7203,704
LanguagePHPPHPPHP
Setup difficultymoderateeasyeasy
Complexity3/52/52/5
Audiencedeveloperdeveloperdeveloper

Figures from each repo's GitHub metadata at analysis time.

How do you get it running?

Difficulty · moderate Time to first run · 30min

No longer actively maintained, consider the assetic/framework successor package for new projects.

Not specified in the description.

In plain English

Assetic is an asset management library for PHP web applications. In web development, assets are files like JavaScript, CSS, and images that a website sends to the browser. Managing these files means tasks like combining multiple files into one, compressing them to reduce size, and converting source formats (like LESS or SASS, which are extended versions of CSS) into plain CSS that browsers understand. Assetic handles all of this in PHP code. The library organizes assets into collections and then applies filters to them. A filter is a processing step, such as compiling LESS into CSS or minifying JavaScript to remove whitespace and comments. Filters can be stacked: a CSS file might first be compiled from SCSS, then compressed by a separate tool. The library ships with a large number of built-in filters covering common tools like LESS, SASS, SCSS, TypeScript, CoffeeScript, UglifyJS, and several CSS and JavaScript compressors. There are three main ways to use Assetic. You can build asset objects directly in code and dump them to a string. You can use an asset manager to organize named assets and a filter manager to organize named filters, then reference them by name. Or you can use an asset factory that takes a root directory and handles most of the object creation for you, including a debug mode that can skip heavy processing steps like minification during development. Assetic also supports writing the processed output to static files on disk so a web server can serve them directly, along with a cache-busting feature that appends a version identifier to file names so browsers fetch fresh copies when the content changes. This repository is no longer actively maintained. Development has continued at a separate repository under the package name assetic/framework.

Copy-paste prompts

Prompt 1
I'm integrating assetic into a PHP project. Show me how to create an AssetFactory, stack a SASS filter with a CSS minifier filter, and dump the result to a static file.
Prompt 2
Using assetic, how do I configure versioned file names for cache busting so a browser always fetches the latest CSS after I deploy?
Prompt 3
Help me understand the difference between using an AssetManager with named assets versus the AssetFactory pattern in assetic, when should I use each?

Frequently asked questions

What is assetic?

A PHP library that manages web assets by combining CSS and JavaScript files, compiling LESS and SASS into plain CSS, and minifying output, no longer actively maintained, with development continuing at assetic/framework.

What language is assetic written in?

Mainly PHP. The stack also includes PHP, LESS, SASS.

What license does assetic use?

Not specified in the description.

How hard is assetic to set up?

Setup difficulty is rated moderate, with roughly 30min to a first successful run.

Who is assetic for?

Mainly developer.

Open on GitHub → Explain another repo

This repo across BitVibe Labs

Scan in gitsafehub Deploy in gitdeployhub kriswallsmith on gitmyhub

Verify against the repo before relying on details.