Download the PHP package asoc/compassomator-bundle without Composer

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

The Compassomator

A bundle to simplify the development with Compass/SASS and symfony2 bundles. It is intended to be used in conjunction with Assetic and not as a replacement. In addition, it adds a file importer to SASS that is able to resolve the familiar @BundleName notation and also the SASS script function bundle-public('@BundleName/images/foo.png') to build the correct path to any asset in the bundles public directory.

The Idea

Use compass to manage every bundle as a standalone project and use a special file importer to reference assets in other bundles. The generated CSS files are then referenced in Assetic.

Requirements

Any Symfony2 2.3+ application will do. You will also need Ruby with rubygems installed and the following gems:

Installation

Configuration

The Compassomator is also able to trigger assetic:dump and assetic:dump --watch if it is desired. To enable it, set the following option:

Quick Setup

Step 1

Create a simple config.rb file inside every bundle inside the Resources/ directory with the following content:

Any generated CSS file will be placed inside the bundles Resources/public/css directory, every SCSS/SASS file that should be compiled by Compass will be searched in Resources/sass.

Step 2

Add the Resources/public/css to .gitignore in the project root. In this setup it is assumed that there are NO css files in the public/css directory that are not generated by Compass/SASS. If there are, it might be required to choose another css_dir.

Step 3

Reference the generated CSS files with the usual Assetic helper in the view:

Step 4

Run the compassomator.

If assetic is not run automatically (manage_assetic: true), dumping the assets with assetic is also required:

Step 5

Run compass watch and assetic dump in the background to automatically update the generated CSS.

If assetic is not run automatically (manage_assetic: true), watching the assets with assetic is also required:

Step 6

Show logs

To view any errors, compass or assetic, the logs can be shown using the logs command.

Logs and other run files can be found in app/cache/compassomator for debugging purposes.

Thanks

Made possible by BITE GmbH as a side project during my master thesis.

Notes

Contribution

Whatever is on your mind, open an issue or a pull request (be it a bug/typo/feature request/code improvement...) :)

License

MIT


All versions of compassomator-bundle with dependencies

PHP Build Version
Package Version
Requires symfony/symfony 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 asoc/compassomator-bundle contains the following files

Loading the files please wait ....