Skip to content
This repository has been archived by the owner on Oct 17, 2022. It is now read-only.

shyim/php-sass

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

2 Commits
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

PHP wrapper for libsass using FFI

Uses FFI to interact with libsass directly.

Requirements

  • PHP 7.4 or FFI Extension
  • Currently only binaries for linux available (gnu and musl)

Usage

$compiler = new \ShyimSass\Compiler();

// Set options if wanted
$compiler->setOptions([
    'output_style' => \ShyimSass\Compiler::STYLE_EXPANDED
]);

// Get the compiled string as return value
echo $compiler->compile(__DIR__ . '/test.scss');

// Compile the file into app.css
$compiler->compile(__DIR__ . '/test.scss', __DIR__ . '/app.css');

About

FFI wrapper for libsass

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages