Download the PHP package heimrichhannot/contao-stylesheet-manager-bundle without Composer

On this page you can find all versions of the php package heimrichhannot/contao-stylesheet-manager-bundle. 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 contao-stylesheet-manager-bundle

Contao Stylesheet Manager

This module offers functionality for generating an aggregated CSS file out of different types of stylesheets in Contao (preserving access to mixins and variables from nearly every file).

Features

Possible types of stylesheets

Note: the order of types is mandatory.

Stylesheet type Description Supported formats Overridable stylesheets
core stylesheets e.g. bootstrap CSS, SCSS
module stylesheets stylesheets living in contao modules, i.e. assets/css CSS (else contao would throw Exception) core
project stylesheets project specific stylesheets CSS, SCSS core, modules

Note: Even though project stylesheets are loaded after everything else, there's still access to all stylesheets (including variables, mixins, ... living in the core stylesheets).

Currently supported formats

Note: This module is written in an expandable way, so new compilers can be added easily (e.g. LESS).

Technical instructions

Installation

  1. Add the following code to a config.php of one of your modules (preferably some kind of module containing all the business logic of your project):

    Important note: Every file can import other files. These files are also watched for changes. If you don't want that (e.g. due to performance issues), you can disable this feature by setting $GLOBALS['STYLESHEET_MANAGER']['preprocessors']['scss']['recursivelyWatchImports'] = false.

  2. Copy the contao template fe_page.html5 to your contao instance's templates directory and replace by (CAUTION: including the comment characters! Adjust the name after the dot according to your domain name in ).

Configuration

Note: Take a look into in order to see what properties can be adjusted.

Commands

CSS generation and caching

Add a new preprocessor

  1. Extend from Compiler (copy Scss.php if you like):

  2. Register the new preprocessor in the config:

  3. Activate the new preprocessor:

Hooks

Name Arguments Description
modifyFrontendPage $strBuffer, $strTemplate Triggers the compiling.

TODO


All versions of contao-stylesheet-manager-bundle with dependencies

PHP Build Version
Package Version
Requires php Version >=5.5.0
symfony/framework-bundle Version ^2.8|^3.0
contao/core-bundle Version ^4.4
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 heimrichhannot/contao-stylesheet-manager-bundle contains the following files

Loading the files please wait ....