neilime / php-css-lint
Powerful & memory efficient CSS linter for PHP
                                    Fund package maintenance!
                                                                            
                                                                                                                                        neilime
                                                                                    
                                                                
Installs: 1 555 622
Dependents: 3
Suggesters: 0
Security: 0
Stars: 11
Watchers: 2
Forks: 5
Open Issues: 0
pkg:composer/neilime/php-css-lint
Requires
- php: ^8.1
- ext-json: *
Requires (Dev)
- guzzlehttp/guzzle: ^7.9
- mikey179/vfsstream: ^1.6
- pcov/clobber: ^2.0
- phpunit/phpunit: ^9.5.27
- symfony/cache: ^6.4
- symfony/console: ^6.4
- symfony/css-selector: ^6.4
- symfony/dom-crawler: ^6.4
This package is auto-updated.
Last update: 2025-10-26 07:08:00 UTC
README
📢 Php CSS Lint is a php script that lint css files and strings. It supports W3C and MDN 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
❤️ If this project helps you reduce time to develop and/or you want to help the maintainer of this project. You can sponsor him. Thank you !
Contributing
👍 If you wish to contribute to this project, please read the CONTRIBUTING.md file. Note: If you want to contribute don't hesitate, I'll review any PR.