Ecosyste.ms: Awesome
An open API service indexing awesome lists of open source software.
https://github.com/neilime/php-css-lint
CSS Linter for PHP
https://github.com/neilime/php-css-lint
composer css css-linter lint php
Last synced: 4 days ago
JSON representation
CSS Linter for PHP
- Host: GitHub
- URL: https://github.com/neilime/php-css-lint
- Owner: neilime
- License: mit
- Created: 2017-01-17T18:01:18.000Z (about 8 years ago)
- Default Branch: main
- Last Pushed: 2025-01-10T07:06:52.000Z (17 days ago)
- Last Synced: 2025-01-16T04:09:47.527Z (12 days ago)
- Topics: composer, css, css-linter, lint, php
- Language: PHP
- Homepage: https://neilime.github.io/php-css-lint/
- Size: 599 KB
- Stars: 11
- Watchers: 4
- Forks: 5
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
- Contributing: CONTRIBUTING.md
- Funding: .github/FUNDING.yml
- License: LICENSE
- Code of conduct: CODE_OF_CONDUCT.md
Awesome Lists containing this project
README
[![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://codecov.io/gh/neilime/php-css-lint/branch/main/graph/badge.svg?token=eMuwgNub7Z)](https://codecov.io/gh/neilime/php-css-lint)
[![Latest Stable Version](https://poser.pugx.org/neilime/php-css-lint/v/stable)](https://packagist.org/packages/neilime/php-css-lint)
[![Total Downloads](https://poser.pugx.org/neilime/php-css-lint/downloads)](https://packagist.org/packages/neilime/php-css-lint)
[![License](https://poser.pugx.org/neilime/php-css-lint/license)](https://packagist.org/packages/neilime/php-css-lint)
[![Sponsor](https://img.shields.io/badge/%E2%9D%A4-Sponsor-ff69b4)](https://github.com/sponsors/neilime)📢 **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](https://github.com/sponsors/neilime) him. Thank you !
# 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
1. [Installation](https://neilime.github.io/php-css-lint/installation)
2. [Usage](https://neilime.github.io/php-css-lint/usage)
3. [Code Coverage](https://codecov.io/gh/neilime/php-css-lint)
4. [PHP Doc](https://neilime.github.io/php-css-lint/phpdoc)# Development
## Setup
`PHP_VERSION` is the version of php to use during the development. Example: `8.2`
```sh
make build-php PHP_VERSION
make install PHP_VERSION
```## Running tests
```sh
make test PHP_VERSION
```## Fix code linting
```sh
make lint-fix PHP_VERSION
```## Running CI scripts
```sh
make ci PHP_VERSION
```