Download the PHP package cypresslab/compass-elephant-bundle without Composer

On this page you can find all versions of the php package cypresslab/compass-elephant-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 compass-elephant-bundle

CompassElephantBundle License

Build Status SensioLabsInsight

Total Downloads Monthly Downloads

A Bundle to use the CompassElephant library in a Symfony2 project

This bundle scans your compass projects on every request, and checks if they needs to be recompiled. It takes care of dependencies, so you can use compass with @import, sprite generation etc. without problems. Let Symfony watch your project and forget about it.

Notice

version >= 0.1 of this bundle do not uses the native checker anymore, as it's not supported by compass from 1.x version.

The staleness_checker option is still available for compatibility, but it's ignored.

Installation

composer

Installing with composer is as simple as typing in the root of your symfony project

Register the bundle

Register the bundle in the AppKernel.php file inside the dev section

app/AppKernel.php

Configuration

Add the configuration in your config file (for the dev environment)

app/config_dev.yml

my-compass-project is a random name for this example. Pick the name you want

path has to be an existing directory. By default, if the directory is empty, CompassElephant try to init a compass project

be gentle with your server cpu: remove the listener on production as it's not needed. You will serve static css files

app/config_prod.yml

Important

Remember that the apache user needs write access to the "sass" folder, the "stylesheet" folder and the config.rb file. If you use compass defaults you will have everything inside the same project folder. You can give permission to all files inside. But you can as well change the position of the stylesheets folder to be outside the project. CompassElephant parses the config file and uses it, just remember to set the right permissions on the folders you define inside compass config file.

Add the stylesheets to your templates

assetic

without assetic

Enjoy!

Complete configuration reference

Command line

There is a simple command to compile all compass projects. It's really useful for deploy procedures (capifony)

for example, in a capifony deploy you could trigger this command

How it works

This bundle register an event listener that, on every request, check if the projects defined in the config_dev.yml files are in "clean" state or needs recompile.

If the project does not need to be recompiled, it adds a really small overhead to symfony.

Read the CompassElephant readme for other useful information


All versions of compass-elephant-bundle with dependencies

PHP Build Version
Package Version
Requires php Version >=5.3.0
cypresslab/compass-elephant Version 0.2.*
symfony/http-kernel Version ~2.3
symfony/framework-bundle Version ~2.3
symfony/console Version ~2.3
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 cypresslab/compass-elephant-bundle contains the following files

Loading the files please wait ....