PHPackages                             neilime/php-css-lint - 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. [Validation &amp; Sanitization](/categories/validation)
4. /
5. neilime/php-css-lint

ActiveLibrary[Validation &amp; Sanitization](/categories/validation)

neilime/php-css-lint
====================

Powerful &amp; memory efficient CSS linter for PHP

v7.2.0(1mo ago)131.8M↓41.8%5[1 PRs](https://github.com/neilime/php-css-lint/pulls)3MITPHPPHP ^8.2CI passing

Since Jan 18Pushed 1w ago3 watchersCompare

[ Source](https://github.com/neilime/php-css-lint)[ Packagist](https://packagist.org/packages/neilime/php-css-lint)[ Docs](https://neilime.github.io/php-css-lint/)[ GitHub Sponsors](https://github.com/neilime)[ RSS](/packages/neilime-php-css-lint/feed)WikiDiscussions main Synced 1w ago

READMEChangelog (10)Dependencies (16)Versions (32)Used By (3)

 [![](https://repository-images.githubusercontent.com/79255687/759bde80-eaaa-11e9-8919-6a8ad3b4a34d)](https://github.com/neilime/easy-win-setup)

[![Continuous integration](https://github.com/neilime/php-css-lint/workflows/Continuous%20integration/badge.svg)](https://github.com/neilime/php-css-lint/actions?query=workflow%3A%22Continuous+integration%22)[![codecov](https://camo.githubusercontent.com/4b70d57042196e9bd0d81992d86849c2a7e6e578da6809f42f10c14d3ee85996/68747470733a2f2f636f6465636f762e696f2f67682f6e65696c696d652f7068702d6373732d6c696e742f6272616e63682f6d61696e2f67726170682f62616467652e7376673f746f6b656e3d654d7577674e7562375a)](https://codecov.io/gh/neilime/php-css-lint)[![Latest Stable Version](https://camo.githubusercontent.com/fff329239d7836bac2e1905c94f88ea5de8a8bb10368f1667d904d5554886300/68747470733a2f2f706f7365722e707567782e6f72672f6e65696c696d652f7068702d6373732d6c696e742f762f737461626c65)](https://packagist.org/packages/neilime/php-css-lint)[![Total Downloads](https://camo.githubusercontent.com/a4201709ab31dd255f4d4acb4180bca50049371f0bde41c27a522d62085aca62/68747470733a2f2f706f7365722e707567782e6f72672f6e65696c696d652f7068702d6373732d6c696e742f646f776e6c6f616473)](https://packagist.org/packages/neilime/php-css-lint)[![License](https://camo.githubusercontent.com/594c444ea3c9c8bb0e629ade7a763d56b5ecf42a0b39c3cf38d3232ff4d98eb3/68747470733a2f2f706f7365722e707567782e6f72672f6e65696c696d652f7068702d6373732d6c696e742f6c6963656e7365)](https://packagist.org/packages/neilime/php-css-lint)[![Sponsor](https://camo.githubusercontent.com/f55c88fe25eb9b7cab4ae4a50e9720925d200d5141d70e4224ecd6bd179de3e3/68747470733a2f2f696d672e736869656c64732e696f2f62616467652f2545322539442541342d53706f6e736f722d666636396234)](https://github.com/sponsors/neilime)

📢 **Php CSS Lint** is a php script that lint css files and strings. It supports [W3C](https://www.w3.org/Style/CSS/) and [MDN](https://developer.mozilla.org/en-US/docs/Web/CSS) CSS specifications.

```
===========================================================

  ____  _              ____ ____ ____    _     _       _
 |  _ \| |__  _ __    / ___/ ___/ ___|  | |   (_)_ __ | |_
 | |_) | '_ \| '_ \  | |   \___ \___ \  | |   | | '_ \| __|
 |  __/| | | | |_) | | |___ ___) |__) | | |___| | | | | |_
 |_|   |_| |_| .__/   \____|____/____/  |_____|_|_| |_|\__|
             |_|

===========================================================

# Lint CSS file "/path/to/css/file.css"...
    - [invalid_property_declaration]: property - Unknown property "bordr-top-style" (line 3, column 5 to line 3, column 27)
    - [unclosed_token]: block - Unclosed "block" detected (line 1, column 23 to line 6, column 2)
 => Failure: CSS file "/path/to/css/file.css" is invalid CSS.
```

Helping Project
===============

[](#helping-project)

❤️ If this project helps you reduce time to develop and/or you want to help the maintainer of this project. You can [sponsor](https://github.com/sponsors/neilime) him. Thank you !

Contributing
============

[](#contributing)

👍 If you wish to contribute to this project, please read the [CONTRIBUTING.md](CONTRIBUTING.md) file. Note: If you want to contribute don't hesitate, I'll review any PR.

Documentation
=============

[](#documentation)

1. [Installation](./docs/installation.md)
2. [Usage](./docs/usage.md)
3. [Development](./docs/development.md)
4. [Code Coverage](https://codecov.io/gh/neilime/php-css-lint)
5. [PHP Doc](https://neilime.github.io/php-css-lint/phpdoc)

###  Health Score

68

—

FairBetter than 99% of packages

Maintenance94

Actively maintained with recent releases

Popularity49

Moderate usage in the ecosystem

Community23

Small or concentrated contributor base

Maturity87

Battle-tested with a long release history

 Bus Factor2

2 contributors hold 50%+ of commits

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 ~141 days

Recently: every ~62 days

Total

25

Last Release

46d ago

Major Versions

v2.2.0 → v3.0.02021-03-04

v3.2.0 → v4.0.02024-11-15

v4.1.2 → v5.0.02025-05-13

v5.0.0 → v6.0.02025-06-18

v6.2.1 → v7.0.02025-12-22

PHP version history (9 changes)1.0.0PHP &gt;=5.3.3

v2.0.0PHP ^7.2

v2.2.0PHP ^7.3

v3.0.0PHP ^7.3 || ^8

v3.1.0PHP ^7.4 || ^8

v3.2.0PHP &gt;=8.0

v4.0.0PHP ~8.1.0 || ~8.2.0 || ~8.3.0

v5.0.0PHP ^8.1

v7.0.0PHP ^8.2

### Community

Maintainers

![](https://www.gravatar.com/avatar/0cd480ea3050a483f3e08c365a6d847402b4edb110d706111d13ef33b845ef9f?d=identicon)[neilime](/maintainers/neilime)

---

Top Contributors

[![neilime](https://avatars.githubusercontent.com/u/314088?v=4)](https://github.com/neilime "neilime (137 commits)")[![dependabot[bot]](https://avatars.githubusercontent.com/in/29110?v=4)](https://github.com/dependabot[bot] "dependabot[bot] (117 commits)")[![github-actions[bot]](https://avatars.githubusercontent.com/in/15368?v=4)](https://github.com/github-actions[bot] "github-actions[bot] (30 commits)")[![dependabot-preview[bot]](https://avatars.githubusercontent.com/in/2141?v=4)](https://github.com/dependabot-preview[bot] "dependabot-preview[bot] (12 commits)")[![Copilot](https://avatars.githubusercontent.com/in/1143301?v=4)](https://github.com/Copilot "Copilot (5 commits)")[![Girgias](https://avatars.githubusercontent.com/u/7906688?v=4)](https://github.com/Girgias "Girgias (5 commits)")[![hugopeek](https://avatars.githubusercontent.com/u/5436121?v=4)](https://github.com/hugopeek "hugopeek (3 commits)")[![yt-topicus](https://avatars.githubusercontent.com/u/186569004?v=4)](https://github.com/yt-topicus "yt-topicus (1 commits)")

---

Tags

composercsscss-linterlintmdnphpw3cvalidationcsslinterlintsyntax

###  Code Quality

TestsPHPUnit

### Embed Badge

![Health badge](/badges/neilime-php-css-lint/health.svg)

```
[![Health](https://phpackages.com/badges/neilime-php-css-lint/health.svg)](https://phpackages.com/packages/neilime-php-css-lint)
```

###  Alternatives

[composer/semver

Version comparison library that offers utilities, version constraint parsing and validation.

3.3k510.9M888](/packages/composer-semver)[giggsey/libphonenumber-for-php

A library for parsing, formatting, storing and validating international phone numbers, a PHP Port of Google's libphonenumber.

5.0k156.0M484](/packages/giggsey-libphonenumber-for-php)[respect/validation

The most awesome validation engine ever created for PHP

6.1k39.0M405](/packages/respect-validation)[seld/jsonlint

JSON Linter

1.3k224.9M252](/packages/seld-jsonlint)[propaganistas/laravel-phone

Adds phone number functionality to Laravel based on Google's libphonenumber API.

3.0k38.3M138](/packages/propaganistas-laravel-phone)[opis/json-schema

Json Schema Validator for PHP

64841.2M257](/packages/opis-json-schema)

PHPackages © 2026

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