Ecosyste.ms: Awesome
An open API service indexing awesome lists of open source software.
https://github.com/yscik/sphasps
SASS parser for PHP
https://github.com/yscik/sphasps
Last synced: 7 days ago
JSON representation
SASS parser for PHP
- Host: GitHub
- URL: https://github.com/yscik/sphasps
- Owner: yscik
- License: mit
- Created: 2010-06-04T14:04:28.000Z (over 14 years ago)
- Default Branch: master
- Last Pushed: 2010-08-15T20:50:17.000Z (over 14 years ago)
- Last Synced: 2024-10-24T18:56:01.664Z (22 days ago)
- Language: PHP
- Homepage:
- Size: 330 KB
- Stars: 5
- Watchers: 2
- Forks: 1
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
- License: LICENSE
Awesome Lists containing this project
README
![sphasps](http://yscik.com/sphasps/logo.png)
This is a [SASS](http://sass-lang.com/) parser for PHP. Enjoy.
About
-----The project's goal is to easily incorporate SASS to your PHP application without additional dependency on Ruby.
Most of the code was written 3 months ago, and at that time it contained some syntax extensions bringing it closer to PHP - like $ prefix for variables.
The recent version 3 of SASS includes this, so it's not really an extra feature here, but similar additions might appear in the future.Current status
--------------Most SASS features are complete and ready to use. These are not:
* @extend
* Functions
* Type conversions
* Color operationsOutput formatting is a bit messy though, and other smaller bits and pieces of functionality might be missing.
SCSS syntax is not supported.
Usage
-----
include("sphasps/sphasps.php");
$css = Sphasps::parse("stylesheet.sass");And propably something like:
file_put_contents("styles.css", $css);
Note that this library is not intented for use in production environment. You should only deploy the static CSS files, not parse them from SASS at every page request.
License
-------[MIT](http://github.com/yscik/sphasps/blob/master/LICENSE)