PHPackages                             miripiruni/csscomb - 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. miripiruni/csscomb

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

miripiruni/csscomb
==================

The greatest tool for sorting CSS properties in specific order.

2.14(12y ago)61051847[11 issues](https://github.com/csscomb/CSScomb/issues)MITPHP

Since Jan 7Pushed 12y ago52 watchersCompare

[ Source](https://github.com/csscomb/CSScomb)[ Packagist](https://packagist.org/packages/miripiruni/csscomb)[ Docs](http://csscomb.com)[ RSS](/packages/miripiruni-csscomb/feed)WikiDiscussions master Synced 1mo ago

READMEChangelog (1)DependenciesVersions (4)Used By (0)

DEPRECATED
----------

[](#deprecated)

This version of CSScomb is no longer supported, guys.
We have a new [super cool Node.js version](http://github.com/csscomb/csscomb.js)instead!

Tool for sorting CSS properties
===============================

[](#tool-for-sorting-css-properties)

- Sorts CSS properties into a logical, consistent order
- Allows for custom sorting of CSS properties (set it to whatever order you're accustomed to)
- Parses CSS in style tags and style attributes -- can comb other languages for CSS as well
- Does not change existing formatting of style sheets --target single or multiple lines of CSS
- Separates CSS properties into groups (you can have groups of empty strings, if you want)
- Fully supports CSS2/CSS2.1/CSS3

The CSScomb algorithm simulates a web developer's judgment in ordering CSS styles. You can spend tons of time re-ordering code--moving lines over each other, working around comments in the code, moving multi-line sets of property values, and all sorts of hacking to make your code more readable. CSScomb takes care of these tasks for you. It "thinks" like a person editing the text, not as a blind robot parsing CSS.

[CSScomb.com](http://csscomb.com/)

The Requirements
----------------

[](#the-requirements)

CSScomb is written in pure PHP, without any external libraries or dependencies. See details at [wiki](https://github.com/miripiruni/CSScomb/wiki/Requirements).

[Download plugins](http://csscomb.com/#downloads)
-------------------------------------------------

[](#download-plugins)

- Sublime Text 2 plugin avaliable in Package Control as 'CSScomb'
- TextMate plugin
- Coda plugin
- Coda 2 plugin
- Espresso 2 plugin ([How to install](https://github.com/miripiruni/CSScomb/blob/master/src/plugins/csscomb.sugar/README.markdown))
- IntelliJIDEA plugin
- WebStorm plugin
- PyCharm plugin
- Notepad ++ plugin
- [Chocolat Mixin](https://github.com/drudge/csscomb.chocmixin)
- [Vim Plugin](https://github.com/miripiruni/CSScomb-for-Vim)

CLI usage
---------

[](#cli-usage)

Available at [csscomb.com](http://csscomb.com)

```
% php csscomb.php

CSSComb
Command line tool for resort CSS code.

SYNOPSIS
    $ php csscomb.php -s  -i  -o

DESCRIPTION
    options:
    -s, --sort-order    specify file with custom sort order. File must contain JSON data. For detail information run 'csscomb.php --help-sort-order'
    -i, --input         must be directory name or file that needs to be sorted
    -o, --output        sort result file. Use output when input is not a directory name, otherwise output param ignored. If output filename does not exist, the file is created. Otherwise, the existing file is overwritten.

    --help, -help, -h, -? or no options will print this man.

EXAMPLE
    csscomb.php -s my-custom-sort-order.json -i css/style.css -o css/style-resorted.css

EXAMPLE 2
    csscomb.php -i some_directory_name

```

Twitter
-------

[](#twitter)

[@csscomb](http://twitter.com/csscomb/)

###  Health Score

39

—

LowBetter than 86% of packages

Maintenance20

Infrequent updates — may be unmaintained

Popularity35

Limited adoption so far

Community25

Small or concentrated contributor base

Maturity65

Established project with proven stability

 Bus Factor1

Top contributor holds 83.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 ~90 days

Total

3

Last Release

4698d ago

### Community

Maintainers

![](https://avatars.githubusercontent.com/u/25086?v=4)[Rob Loach](/maintainers/RobLoach)[@RobLoach](https://github.com/RobLoach)

---

Top Contributors

[![miripiruni](https://avatars.githubusercontent.com/u/144537?v=4)](https://github.com/miripiruni "miripiruni (260 commits)")[![tonyganch](https://avatars.githubusercontent.com/u/872004?v=4)](https://github.com/tonyganch "tonyganch (41 commits)")[![aleemb](https://avatars.githubusercontent.com/u/46616?v=4)](https://github.com/aleemb "aleemb (3 commits)")[![onecrayon](https://avatars.githubusercontent.com/u/33501?v=4)](https://github.com/onecrayon "onecrayon (3 commits)")[![i-akhmadullin](https://avatars.githubusercontent.com/u/1042267?v=4)](https://github.com/i-akhmadullin "i-akhmadullin (2 commits)")[![RobLoach](https://avatars.githubusercontent.com/u/25086?v=4)](https://github.com/RobLoach "RobLoach (1 commits)")

### Embed Badge

![Health badge](/badges/miripiruni-csscomb/health.svg)

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

###  Alternatives

[loophp/combinator

A curated list of combinators

1251.4k](/packages/loophp-combinator)[nguyenanhung/codeigniter-basic-helper

CodeIgniter - Basic Helper

1027.3k1](/packages/nguyenanhung-codeigniter-basic-helper)

PHPackages © 2026

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