PHPackages                             darren-nolan/styler - 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. darren-nolan/styler

AbandonedArchivedLibrary

darren-nolan/styler
===================

CSS Styler package for Laravel. Compiles Less/SCSS on the fly and supports serving cached content.

v0.0.2(12y ago)0331MITPHPPHP &gt;=5.3.0

Since Sep 28Pushed 12y ago1 watchersCompare

[ Source](https://github.com/darrennolan/Styler)[ Packagist](https://packagist.org/packages/darren-nolan/styler)[ RSS](/packages/darren-nolan-styler/feed)WikiDiscussions develop Synced today

READMEChangelogDependencies (4)Versions (4)Used By (0)

Styler
======

[](#styler)

CSS Styler package for Laravel. Compiles Less/SCSS on the fly and supports serving cached content.

I wrote this particular package because I wanted something stupidly simple, and didn't want to 'watch' directories while I'm coding. Just recompile if the css has changed thanks.

### Installing

[](#installing)

To grab via composer, just add `darren-nolan/styler` on `dev-master` to your required packages.

```
"require": {
    "darren-nolan/styler": "0.0.2"
}

```

### Features

[](#features)

- SCSS and Less Compiling (Thanks to Leafo's [SCSS](https://github.com/leafo/scssphp) and [Less](https://github.com/leafo/lessphp) compilers.)
- Raw CSS
- Automatically switch between compilers based on file extension
- Adjustable route to deliver the CSS

### Setup

[](#setup)

Firstly add the ServiceProvider to your `app.php` configuration

```
'DarrenNolan\Styler\StylerServiceProvider',

```

Push the configuration into your application and edit as required (under app/config/packages/darren-nolan/styler/config.php)

```
php artisan config:publish darren-nolan/styler

```

`base_route` defines the listening base URL. By default `/styler/*.(css|less|scss)` is where you link for compiled styles.

`compiler` defines the compiler/driver to use to compile stylesheets with. By default `auto` will check against the file's extension and compile accordingly.

Compiler options

`serve_from` defines where this compiler should look for it's source files. By default `app_path() . '/css'` is used.

`cache_folder` defines where this compiler should store it's cached versions (if any). This folder should be created before use. Can be set to `false` to disable.

Special Compiler Options

`less` has `format_option` which is what the output should be compiled as. `'lessjs'`, `'compressed'`, `'classic'` and `null` are valid. Check [documentation](http://leafo.net/lessphp/docs/#output_formatting)

`scss` has `format_option` which is what the output should be compiled as. `'scss_formatter'`, `'scss_formatter_nested'`, and `'scss_formatter_compressed'` are valid. Check [documentation](http://leafo.net/scssphp/docs/#output_formatting)

The configuration file is fairly self explanatory. However hang on for some better documentation.

### Coming at some point

[](#coming-at-some-point)

- Tests. Because tests are important.
- Each compiler is handed it's driver configuration in an array, however `auto` needs to get SCSS/LESS configuration too, so this will be adjusted so that a driver gets access to all configuration.
- Code cleanup. Because I've been at a buck's all weekend and in my current capacity, I'm sure this is messy as hell.

### License

[](#license)

Styler is open-source software licensed under the [MIT license](http://opensource.org/licenses/MIT)

###  Health Score

24

—

LowBetter than 32% of packages

Maintenance20

Infrequent updates — may be unmaintained

Popularity8

Limited adoption so far

Community10

Small or concentrated contributor base

Maturity50

Maturing project, gaining track record

 Bus Factor1

Top contributor holds 92.9% 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 ~120 days

Total

2

Last Release

4488d ago

### Community

Maintainers

![](https://www.gravatar.com/avatar/5d4712c14653fcb13ad3a2aa8082ea4eab6ed81901c4f17662f3c3692294c194?d=identicon)[darrennolan](/maintainers/darrennolan)

---

Top Contributors

[![darrennolan](https://avatars.githubusercontent.com/u/1115755?v=4)](https://github.com/darrennolan "darrennolan (13 commits)")[![mean-cj](https://avatars.githubusercontent.com/u/1191385?v=4)](https://github.com/mean-cj "mean-cj (1 commits)")

---

Tags

laravelcssscsslessstylesstylesheets

### Embed Badge

![Health badge](/badges/darren-nolan-styler/health.svg)

```
[![Health](https://phpackages.com/badges/darren-nolan-styler/health.svg)](https://phpackages.com/packages/darren-nolan-styler)
```

###  Alternatives

[tzsk/sms

A robust and unified SMS gateway integration package for Laravel, supporting multiple providers.

320244.3k6](/packages/tzsk-sms)[efficiently/larasset

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

684.8k](/packages/efficiently-larasset)[zizaco/lessy

Lessy is a simple and lean LESS compiler for Laravel

2316.7k](/packages/zizaco-lessy)[api-platform/laravel

API Platform support for Laravel

59126.4k6](/packages/api-platform-laravel)[trentrichardson/cakephp-shrink

Compiles, combines, and minifies javascript, coffee, less, scss, and css

1619.3k](/packages/trentrichardson-cakephp-shrink)[mmanos/laravel-casset

An asset management package for Laravel 4.

112.6k](/packages/mmanos-laravel-casset)

PHPackages © 2026

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