PHPackages                             fdevs/css-fixer-bundle - 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. fdevs/css-fixer-bundle

AbandonedArchivedSymfony-bundle[Utility &amp; Helpers](/categories/utility)

fdevs/css-fixer-bundle
======================

Allows you to check if .css files follow general rules and convention or fix them

1.0.1(11y ago)017MITPHPPHP &gt;=5.4

Since Sep 11Pushed 11y ago4 watchersCompare

[ Source](https://github.com/4devs/CssFixerBundle)[ Packagist](https://packagist.org/packages/fdevs/css-fixer-bundle)[ RSS](/packages/fdevs-css-fixer-bundle/feed)WikiDiscussions master Synced 1w ago

READMEChangelogDependencies (2)Versions (3)Used By (0)

\#CssFixerBundle

This bundle wraps [csscombjs](https://github.com/csscomb/csscomb.js/) and adds a CSS code style validation to your project

\###Requirements

The `npm` executable must be available in `PATH`

\###Installation

\####1) Add a dependency to your composer.json file:

```
{
    "require-dev": {
        "fdevs/css-fixer-bundle": "~1.0"
    }
}
```

You need this bundle only for development, so use `require-dev` section of the `composer.json` file.

\####2) Install the package to your project via composer:

```
composer update fdevs/css-fixer-bundle
```

\####3) Add the bundle to your `AppKernel.php` file:

```
// app/AppKernel.php

public function registerBundles()
{
    // ...
    if (in_array($this->getEnvironment(), array('dev', 'test'))) {
        $bundles[] = new FDevs\CssFixerBundle\FDevsCssFixerBundle();
        // ...
    }
    // ...
}
```

As before, register this bundle in the `dev` environment only, so it won't consume memory in the `prod` environment.

Here `FDevsCssFixerBundle` is ready to use. Its default configuration allows it to check `all` `your` bundles, that are living inside `src` folder.

\###Examples of usage

#### Validation of .css files

[](#validation-of-css-files)

This bundle has console command:

```
app/console fdevs:cs:css-fixer
```

or its alias:

```
app/console code-style:css-fixer
```

By default it works in `lint` mode, just shows files that aren't following code style conventions.

You can use next options:

```
--fix (-f) # force css fixer to fix files, not just show mistakes
--verbose (-v) # show additional messages and list of checked files and fixed ones
```

#### How to see all configuration options and their default values

[](#how-to-see-all-configuration-options-and-their-default-values)

To see all available options and examples of values, you can use a standard console command:

```
app/console config:dump-reference f_devs_css_fixer
```

It will show you all necessary information to quickly anderstand and customize the bundle to your needs.

#### Customizing bundle to own needs and code style conventions

[](#customizing-bundle-to-own-needs-and-code-style-conventions)

The bundle has 3 main sections in its configuration:

- `include` - here you can add bundles you want to check .css files in.
- `exclude` - here you can add list of bundles you don't want to check.
- `rules` - here you can set up each of more than 20 options available for csscomb fixer.

#### Example of configuration

[](#example-of-configuration)

```
f_devs_css_fixer:
    include:
        - FDevsFirstBundle
        - FDevsSecondBundle
    exclude:
        - AcmeDemoBundle
    rules:
        space_before_opening_brace: 1
        space_before_closing_brace: "\n"
    # other rules you want to change
```

Priority for bundles is next (from the lowest):

- all your bundles (if neither `include` nor `exclue` provided, then all your bundles will be checked)
- include (will replace all if provided)
- exclude (will remove bundles both from all or `include`)

###  Health Score

26

—

LowBetter than 43% of packages

Maintenance20

Infrequent updates — may be unmaintained

Popularity6

Limited adoption so far

Community10

Small or concentrated contributor base

Maturity59

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.

###  Release Activity

Cadence

Every ~9 days

Total

2

Last Release

4257d ago

### Community

Maintainers

![](https://avatars.githubusercontent.com/u/1908507?v=4)[andrey](/maintainers/andrey1s)[@andrey1s](https://github.com/andrey1s)

![](https://avatars.githubusercontent.com/u/1994051?v=4)[Viktor Melnik](/maintainers/vmelnik-ukraine)[@vmelnik-ukraine](https://github.com/vmelnik-ukraine)

---

Top Contributors

[![vmelnik-ukraine](https://avatars.githubusercontent.com/u/1994051?v=4)](https://github.com/vmelnik-ukraine "vmelnik-ukraine (5 commits)")

---

Tags

Code stylecsscsscombfdevs

### Embed Badge

![Health badge](/badges/fdevs-css-fixer-bundle/health.svg)

```
[![Health](https://phpackages.com/badges/fdevs-css-fixer-bundle/health.svg)](https://phpackages.com/packages/fdevs-css-fixer-bundle)
```

###  Alternatives

[components/flag-icon-css

A curated collection of all country flags in SVG — plus the CSS for easier integration.

12.0k1.6M23](/packages/components-flag-icon-css)[matthiasmullie/minify

CSS &amp; JavaScript minifier, in PHP. Removes whitespace, strips comments, combines files (incl. @import statements and small assets in CSS files), and optimizes/shortens a few common programming patterns.

2.0k30.5M336](/packages/matthiasmullie-minify)[scssphp/scssphp

scssphp is a compiler for SCSS written in PHP.

62827.7M220](/packages/scssphp-scssphp)[mexitek/phpcolors

A series of methods that let you manipulate colors. Just incase you ever need different shades of one color on the fly.

5003.6M18](/packages/mexitek-phpcolors)[wikimedia/less.php

PHP port of the LESS processor

12327.4M77](/packages/wikimedia-lessphp)[cerdic/css-tidy

CSSTidy is a CSS minifier

2092.0M6](/packages/cerdic-css-tidy)

PHPackages © 2026

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