Download the PHP package shyim/sasso-shopware-compiler without Composer

On this page you can find all versions of the php package shyim/sasso-shopware-compiler. It is possible to download/install these versions without Composer. Possible dependencies are resolved automatically.

FAQ

After the download, you have to make one include require_once('vendor/autoload.php');. After that you have to import the classes with use statements.

Example:
If you use only one package a project is not needed. But if you use more then one package, without a project it is not possible to import the classes with use statements.

In general, it is recommended to use always a project to download your libraries. In an application normally there is more than one library needed.
Some PHP packages are not free to download and because of that hosted in private repositories. In this case some credentials are needed to access such packages. Please use the auth.json textarea to insert credentials, if a package is coming from a private repository. You can look here for more information.

  • Some hosting areas are not accessible by a terminal or SSH. Then it is not possible to use Composer.
  • To use Composer is sometimes complicated. Especially for beginners.
  • Composer needs much resources. Sometimes they are not available on a simple webspace.
  • If you are using private repositories you don't need to share your credentials. You can set up everything on our site and then you provide a simple download link to your team member.
  • Simplify your Composer build process. Use our own command line tool to download the vendor folder as binary. This makes your build process faster and you don't need to expose your credentials for private repositories.
Please rate this library. Is it a good library?

Informations about the package sasso-shopware-compiler

ShyimSassoCompiler

Compiles the Shopware storefront theme SCSS with sasso — a pure-Rust dart-sass alternative — instead of scssphp, by decorating Shopware\Storefront\Theme\ScssPhpCompiler.

Uses the shyim/sasso-ffi package, which talks to the native library through ext-ffi; no PHP extension has to be compiled.

Install

This is a plain Symfony bundle, not a Shopware plugin — there is no install/activate step and no database record, so it also works on setups where plugin management is locked down.

If your project uses Symfony Flex, that is all — Flex detects the bundle and writes it into config/bundles.php itself. Shopware projects are not Flex apps by default, so register it manually:

Clear the cache and the next bin/console theme:compile goes through sasso. Position in the list does not matter — service decoration is resolved after every bundle has registered.

To go back to scssphp, remove the line from config/bundles.php.

Why

scssphp is unmaintained upstream and is the slowest part of a theme build. On this repository's default Storefront theme:

Compiler Time Output
scssphp 1.145s 349,630 bytes
sasso 0.116s 353,613 bytes

Roughly a 10x speedup for the SCSS compile step.

Output differences

The CSS is semantically identical; where the bytes differ, sasso follows current dart-sass and scssphp is the outlier:

SCSSValidator behaviour matches scssphp exactly, including which values throw.

Import resolution

Shopware puts both plain directories and resolver closures into the compiler's importPaths configuration — ThemeCompiler::getResolveImportPathsCallback() maps ~bundle/... urls onto absolute paths. scssphp accepts callables as import paths directly; sasso separates the two, so directories go to setImportPaths() and the closures are adapted onto sasso's two-phase importer protocol by CallbackImporter.

Validate


All versions of sasso-shopware-compiler with dependencies

PHP Build Version
Package Version
Requires php Version >=8.2
shopware/storefront Version ~6.6.0 || ~6.7.0 || ~6.8.0
shyim/sasso-ffi Version ^0.1
symfony/config Version ^6.4 || ^7.0 || ^8.0
symfony/dependency-injection Version ^6.4 || ^7.0 || ^8.0
symfony/http-kernel Version ^6.4 || ^7.0 || ^8.0
Composer command for our command line client (download client) This client runs in each environment. You don't need a specific PHP version etc. The first 20 API calls are free. Standard composer command

The package shyim/sasso-shopware-compiler contains the following files

Loading the files please wait ...