# JCssParser-PHP **Repository Path**: javey/JCssParser-PHP ## Basic Information - **Project Name**: JCssParser-PHP - **Description**: A lightweight css parser written in php - **Primary Language**: Unknown - **License**: Not specified - **Default Branch**: master - **Homepage**: None - **GVP Project**: No ## Statistics - **Stars**: 0 - **Forks**: 0 - **Created**: 2015-04-28 - **Last Updated**: 2021-11-03 ## Categories & Tags **Categories**: Uncategorized **Tags**: None ## README JCssParser-PHP ============== A lightweight css parser written in php. Reference from [reworkcss](https://github.com/reworkcss/css) #Usage ##parse ```php parse('.a{width: 2px}'); ``` ```php print_r($cssNode); Array ( [type] => stylesheet [stylesheet] => Array ( [rules] => Array ( [0] => Array ( [type] => rule [selectors] => Array ( [0] => .a ) [declarations] => Array ( [0] => Array ( [type] => declaration [property] => width [value] => 2px ) ) ) ) ) ) ``` ##stringify ```php stringify($cssNode); ```