Skip to content
This repository has been archived by the owner on Jan 19, 2018. It is now read-only.

DEPRECATED - PHP library for parsing and analysing CSS

Notifications You must be signed in to change notification settings

projectwallace/php-css-parser-analyser

Repository files navigation

Abandoned project!

This project is no longer maintained! It was never released publicly, this repo is only here for learning/documenting purposes.

Architecture

The architecture is also quite poorly, as this repo does 3 things:

  • REST API: accept incoming requests to process and store CSS
  • CSS Parser: build an AST out of incoming CSS
  • CSS Analyser: build statistics based on the CSS AST

Running tests

vendor/bin/phpunit
vendor/bin/phpcs --standard=PSR2 src/
vendor/bin/phpcs --standard=PSR2 test/
vendor/bin/phpcpd src/
vendor/bin/phpcpd test/