Download the PHP package artem-frolov/yii-sass without Composer

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

Sass (SCSS) and Compass support for the Yii framework

yii-sass extension implements Sass and Compass support: compilation on-the-fly, publishing, registration in views.

Build Status

External Sass tools are NOT used, compilation is done using PHP compiler.

Only SCSS syntax is supported.
Indented syntax is not supported.

Sass is an extension of CSS that adds power and elegance to the basic language. It allows you to use variables, nested rules, mixins, inline imports, and more, all with a fully CSS-compatible syntax. Sass helps keep large stylesheets well-organized, and get small stylesheets up and running quickly.

Compass is an open-source CSS authoring framework which uses the Sass stylesheet language to make writing stylesheets powerful and easy.

This extension caches compiled CSS code and prevents recompilation if there is no need in it.

Requirements

Installation

Installation can be done using Composer or manually by downloading required files.

Install using Composer

  1. Install artem-frolov/yii-sass package from Packagist. Required libraries will be installed automatically.
    Execute in your application's directory:

  2. Update your application's configuration (e.g. protected/config/main.php) like this:

Install manually

  1. Download yii-sass extension
    Put files to the "protected/extensions/yii-sass" directory so the path to the SassHandler.php will look like "protected/extensions/yii-sass/SassHandler.php"
  2. Download scssphp compiler
    Put files to the "protected/vendor/scssphp" directory
  3. Download scssphp-compass library
    Skip this step if you don't need Compass support
    Put files to the "protected/vendor/scssphp-compass" directory
  4. Update your application's configuration (e.g. protected/config/main.php) like this:

Usage

Add the code like the following to your views/layout.
It will compile SCSS file (or recompile if needed), publish and register compiled CSS file:

Component options

All options below are optional except the "class" item.

Component methods

Unit Tests

Execute the following commands in the root directory of yii-sass extension to run unit tests.

For Windows:

For Linux/Mac/etc.:

Changelog

Resources


All versions of yii-sass with dependencies

PHP Build Version
Package Version
Requires php Version >=5.4.0
leafo/scssphp Version ~0.6.7
artem-frolov/scssphp-compass Version 0.1.*
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 artem-frolov/yii-sass contains the following files

Loading the files please wait ....