Download the PHP package flazzarotto/sass-generator without Composer

On this page you can find all versions of the php package flazzarotto/sass-generator. 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 sass-generator

README

This Symfony3 bundle use leafo/scssphp and koala-framework/sourcemaps to compile all scss files of a directory to css in another directory. You can also generate css sourcemaps as well. It is mainly made up of a sass compiler / sourcemap generator service and a command line tool.

 Set up

  1. Run composer require flazzarotto/sass-generator dev-master

  2. Modify you AppKernel.php:

  3. (Optional) You can automatise the sass generation by adding commands to your composer.json in scripts > post-install-cmd/post-update-cmd/warmup. See below for more details about sass generator service and its command line tool.

HOW TO USE

The main goal of this package is to generate compiled css files and associated sourcemaps from a list of scss files in a symfony3 project. This can be very useful if your project must be released on cloud services such as Heroku. There are to ways to use it :

  1. command line: php bin/console sass:generate [inputFolder:outputFolder] [--source-maps] [--line-numbers] [--precision x] [--format myFormat]

    • inputFolder:outputFolder : should be something like "web/[...]scssInputFolder:web/[...]cssOutputFolder" - default value : web/scss:web/css
    • source-maps : if set it will generate source maps as well (same folder as css files)
    • line-number : will generate CSS with source file line numbers
    • precision : set the precision for float numbers (default sass value is 5)
    • format : the format wanted in the following: compact, compressed, crunched, expanded, nested

    Examples:

    • php bin/console sass:generate web/scss:web/css --source-maps will generate both compacted css and sourcemap files
    • php bin/console sass:generate web/scss:web/css --line-numbers will generate only css commented with original sass line numbers in comments (can't be used with compressed or crunched formats)
    • php bin/console sass:generate web/scss:web/css --format compressed will generate only minified css (can't work with source-maps option)
  2. Service

    You can use this service if you need to be more flexible than the command tool line or if you intend to create your own command. Here's how to initialise the service:

    Parameters are the same as the command line tool (set options to true to get same result). Then you will be able to use the following methods:


All versions of sass-generator with dependencies

PHP Build Version
Package Version
Requires leafo/scssphp Version ^0.5
koala-framework/sourcemaps Version ^0.5.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 flazzarotto/sass-generator contains the following files

Loading the files please wait ....