Download the PHP package jeffersonsimaogoncalves/cakephp-assets without Composer

On this page you can find all versions of the php package jeffersonsimaogoncalves/cakephp-assets. 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 cakephp-assets

cakephp-assets plugin

cakephp-assets is a CakePHP plugin to allows you to handle and generate assets.

It uses matthiasmullie/minify and provides a convenient helper that allows you to combine multiple asset files into one single compressed file.


Installation

You can install the plugin via composer:

NOTE: the latest version available requires at least CakePHP 3.7.

Instead, the cakephp3.2 branch is compatible with all previous versions of CakePHP from version 3.2.4.
This branch coincides with the 1.4 version of cakephp-assets and in any case it will no longer receive new features but only bugfixes.

In this case, you can install the package as well:

After installation, you have to edit APP/config/bootstrap.php to load the plugin:

For more information on how to load the plugin, please refer to the Cookbook.

By default the plugin uses the APP/tmp/assets directory to save the asset files. So you have to create the directory and make it writable:

If you want to use a different directory, read below.

Configuration

The plugin uses some configuration parameters and you can set them using the \Cake\Core\Configure class, before loading the plugin.

For example, you can do this at the bottom of the file APP/config/app.php of your application.

Configuration values

Setting Assets.force to true, the assets will be used even if debugging is enabled.

Setting Assets.target, you can use another directory where the plugin will generate the assets.

How to use

You have to use only the AssetHelper. This helper provides css() and script() methods, similar to the methods provided by the HtmlHelper.

The syntax is the same, you just have to change the name helper. Example for AssetHelper::css().

This will combine and compress one.css and two.css files, creating a unique asset file, and will create a link element for CSS stylesheets, as does the method provided by the HtmlHelper.

The same also applies to the AssetHelper::script() method.

Versioning

For transparency and insight into our release cycle and to maintain backward compatibility, cakephp-assets will be maintained under the Semantic Versioning guidelines.

Credits

This work is based on the code by Mirko Pagliai.


All versions of cakephp-assets with dependencies

PHP Build Version
Package Version
Requires php Version >=5.5.9
cakephp/cakephp Version ^3.7
jeffersonsimaogoncalves/php-tools Version ^1.3
matthiasmullie/minify Version ^1.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 jeffersonsimaogoncalves/cakephp-assets contains the following files

Loading the files please wait ....