Download the PHP package websemantics/lcss2php without Composer
On this page you can find all versions of the php package websemantics/lcss2php. It is possible to download/install these versions without Composer. Possible dependencies are resolved automatically.
Download websemantics/lcss2php
More information about websemantics/lcss2php
Files in websemantics/lcss2php
Package lcss2php
Short Description Conveniently extracts variable declarations from multiple Less / Scss sources and returns a PHP associative array.
License MIT
Homepage https://github.com/websemantics/lcss2php
Informations about the package lcss2php
A straightforward library that extracts variable declarations from multiple
Less
/Scss
sources and returns aPHP
associative array.
Install
1- Use Composer
to install as follows,
Getting Started
Pass a list of files (Less
, Scss
or a mix ) to a newly created instance of Lcss2php
class. Get a list of all the variables using the all
method.
By default all variable types are returned, for example, Color
, Dimension
, etc. You can use the ignore
function to filter some types from the final variables list,
Notice that, there are two different variable types for each lanaguage (Less
, Scss
). For a list of all the types, check class Type
at lcss2php/src/Node/Type.php
.
Example
Quick run of what to expect; take this Scss
example code,
Will be converted to,
Support
Star :star: this repository if you find this project useful, to show support or simply, for being awesome :)
Need help or have a question? post at [StackOverflow](https://stackoverflow.com/questions/tagged/lcss2php websemantics).
Please don't use the issue trackers for support/questions.
Contribution
Contributions to this project are accepted in the form of feedback, bugs reports and even better - pull requests.
Open Source
These project have been used in the making of this project, thanks you!
- SCSS Compiler, SCSS compiler written in PHP.
- LESS Compiler, Less.js ported to PHP.
License
MIT license Copyright (c) Web Semantics, Inc.