Cartalyst LLC.
Assetic-filters by Cartalyst
0
8
0
5
5

Introduction

Our assetic filters are a (growing) list of filters which enhance Assetic and can make your job easier as a developer, meaning you can get home earlier. Good, right?

We currently have the following filters:

  1. CoffeeScript PHP Compiler
  2. SASS PHP Compiler
  3. LESS PHP Compiler

Installation

The best and easiest way to install the assetic filters package is with Composer.

Preparation

Open your composer.json file and add the following to the require array:

"cartalyst/assetic-filters": "1.0.*"

Install the dependencies

Run Composer to install or update the new requirement.

php composer install

or

php composer update

Now you are able to require the vendor/autoload.php file to autoload the package.

Usage

CoffeeScript PHP Compiler

Currently, compiling CoffeeScript requires that you install NodeJS and then CoffeeScript through sudo npm install -g coffee-script.

This is a relatively easy process, providing you have good access to the server. But what if you just wanted to get up and running without mucking around with external libraries? We have you covered. Simply return an instance of Cartalyst\AsseticFilters\CoffeeScriptphpFilter to your filters in assetic and you're done!

SASS PHP Compiler

Like the logic behind CoffeeScript, we would like people to get up and running with the predecessor to SCSS, known as SASS with ease. Rather than install a ruby gem, simply pass an instance of Cartalyst\AsseticFilters\SassphpFilter to your assetic filters and you're done.

LESS PHP Compiler

Like the logic behind CoffeeScript, we would like people to get up and running with LESS with ease. Rather than install a ruby gem, simply pass an instance of Cartalyst\AsseticFilters\LessphpFilter to your assetic filters and you're done.

You wont find fancy lifestyle graphics and marketing bravado here. Just cold... hard... code...

Code Well, Rock On!
Processing Payment...