Download the PHP package cundd/assetic without Composer

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

Cundd Assetic

Integrate the Assetic asset management framework into your TYPO3 CMS installation.

Installation

  1. composer require cundd/assetic
  2. Load the Site Set into the TYPO3 Site
  3. Configure the assets you want to be loaded
  4. Include the plugin the page.headerData

Usage

Basic

Multiple assets

With SASS

If your web server and web user are configured to be able to use the sass command line tool, from within your TYPO3 installation, you could use the following:

With other CSS preprocessors

Analog you can use other CSS preprocessors. The Assetic Github Page provides a (incomplete) list of all filters provided by the installed Assetic version.

Development mode

To make sure that the assets are compiled each time the frontend page is refreshed, you can enable the development mode:

plugin.tx_assetic {
    development = 1
}

By default Cundd Assetic is configured not to compile files if NO backend user is logged in. To allow file compilation without a logged in backend user you can change the allowDeveloperFeaturesWithoutLogin configuration in Site Settings.

Advanced

Configure a filter

Some filters allow further customization. The Sass filter e.g. provides the method addImportPath which allows you to add another path to look for imported Sass files. Cundd Assetic provides an interface to invoke such functions.

If you want to invoke a method multiple times you can just add a numeric prefix to the function name:

Development flags

To apply functions only in development mode, entries can be added with key developmentFunctions:

Configure the filter binary paths

In some cases you may have to specify the path to a CSS preprocessor to match your system's configuration. This can be done through the filterBinaries configuration.

The configuration keys are determined by replacing \ with _ and converting the string to lowercase:

Command line

Assetic provides three different CLI commands.

assetic:compile

Compiles the assets and exit.

assetic:watch

Watches for file changes in EXT:client and re-compiles the assets if needed.

assetic:livereload

Starts a LiveReload compatible server that watches for file changes in EXT:client and re-compiles the assets if needed. The necessary JavaScript can be loaded be enabling addJavascript in Site Settings.

LiveReload

Setup

To start the LiveReload server the PHP library "Ratchet" must be installed. For example as a development dependency:

LiveReload & CSP

To use LiveReload with CSP enabled add wss://your-domain.tld:35729/livereload to connect-src in the site's CSP configuration file (config/sites/your-site/csp.yaml).

See the TYPO3 documentation for further details.

Example

Additional tools

Standalone auto-refresh tool

Cundd Assetic provides a JavaScript tool that checks the CSS and JavaScript assets on the page for changes and automatically reloads them. For more information and usage visit /Resources/Public/JavaScript.

Sponsored by


All versions of assetic with dependencies

PHP Build Version
Package Version
Requires php Version ^8.1
ext-ctype Version *
typo3/cms-core Version ^12.4.6 || ^13.4.0 || ^14.3.0
cundd/assetic_additions Version ^2.0.0
assetic/framework Version ^3.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 cundd/assetic contains the following files

Loading the files please wait ...