Download the PHP package slushie/laravel-assetic without Composer

On this page you can find all versions of the php package slushie/laravel-assetic. 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 laravel-assetic

Laravel-Assetic

Easily integrate Assetic with Laravel 4.

Total Downloads Latest Stable Version Latest Unstable Version License

Key Features

  1. Easily maintain assets within groups.
  2. Instant single file compilation, concatenation, and minification.
  3. Apply multiple filters to each group.
  4. Automatically updates output files when their inputs have been changed.
  5. Pre-compile assets using artisan asset:warm.

Usage

Add to your composer.json:

After running composer update, you need to add the service provider (and optionally, alias the Asset facade) in your app/config/app.php file:

Once your app's configuration has been updated, generate the package config:

Now the laravel-assetic configuration file will be available at:

Finally, edit the configuration file file to define your assets. You can define multiple groups, each with different filters and assets.

Defining Filters

Filters are defined within the package configuration file.

Adding Assets to Groups

Each group defines assets and filters as inputs, and an output file that should be included in your view.

Using Assets in Views

Once defined, your groups can then be accessed from within your views using the Asset facade. To link to the main_js group, you can use the Asset::url() method as follows:

This will output the URL to the asset file (in this example, /scripts.js).

When the page loaded, Assetic will generate the file, joining all files and running the defined filters.

You can also generate the asset output files via the artisan command:

Of course, this can be performed as a composer post-install command to generate assets at deployment time.

More Information

More information can be acquired by reading through the source, which is fully documented, or you may feel free to raise issues at https://github.com/slushie/laravel-assetic/issues


All versions of laravel-assetic with dependencies

PHP Build Version
Package Version
Requires php Version >=5.3.0
illuminate/support Version ~4.0
kriswallsmith/assetic Version 1.1.2
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 slushie/laravel-assetic contains the following files

Loading the files please wait ....