neilime / php-css-lint
Powerful & memory efficient CSS linter for PHP
Fund package maintenance!
neilime
Installs: 1 165 300
Dependents: 3
Suggesters: 0
Security: 0
Stars: 11
Watchers: 4
Forks: 4
Open Issues: 0
Requires
- php: ~8.1.0 || ~8.2.0 || ~8.3.0
- ext-json: *
Requires (Dev)
- mikey179/vfsstream: ^1.6
- pcov/clobber: ^2.0
- phpunit/phpunit: ^9.5.27
README
📢 Php CSS Lint is a php script that lint css files and strings:
===========================================================
____ _ ____ ____ ____ _ _ _
| _ \| |__ _ __ / ___/ ___/ ___| | | (_)_ __ | |_
| |_) | '_ \| '_ \ | | \___ \___ \ | | | | '_ \| __|
| __/| | | | |_) | | |___ ___) |__) | | |___| | | | | |_
|_| |_| |_| .__/ \____|____/____/ |_____|_|_| |_|\__|
|_|
===========================================================
# Lint file "/path/to/css/file.css"...
=> File "/path/to/css/file.css" is not valid :
- Unknown CSS property "bordr-top-style" (line: 8, char: 20)
- Unexpected char ":" (line: 15, char: 5)
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.
Documentation
Development
Setup
PHP_VERSION
is the version of php to use during the development. Example: 8.2
make build-php PHP_VERSION make install PHP_VERSION
Running tests
make test PHP_VERSION
Fix code linting
make lint-fix PHP_VERSION
Running CI scripts
make ci PHP_VERSION