Download the PHP package sethorax/typo3-assetloader without Composer

On this page you can find all versions of the php package sethorax/typo3-assetloader. 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 typo3-assetloader

TYPO3 Extension assetloader

Build Status StyleCI Latest Stable Version License

This extension enables you to conveniently add inline CSS and JS, deferred CSS and JS and Webfonts to your project.
The goal of this extension is to improve the overall pagespeed by how those assets are loaded.

Features

Usage

Installation

Installation using Composer

It is recommended to install this extension via composer.
To install it just do composer require sethorax/typo3-assetsloader

This extension can also be installed traditionally via the TYPO3 Extension Repository (TER).

TypoScript Setup

Every aspect of this extension is configurable via typoscript setup.

Example typoscript setup:

All settings are configured in plugin.tx_assetsloader

Typoscript Settings

concatenateCSS

If enabled all CSS files will be concatenated. Concatenation is only supported by includeCSSDeferred and includeJSDeferred.
Single files can be excluded from concatenation by setting excludeFromConcatenation = 1 in the files settings.

concatenateJS

Same as concatenateCSS but for JS.

minifyCSS

If enabled all CSS code will be minified. Minification is supported by all CSS and JS related settings.

minifyJS

Same as minifyCSS but for JS.

includeCSSInline

All entries within that setting will be included as a style tag in the <head>.
It can also include file contents as inline CSS. To do so, set file = 1 for that entry.
Supports minification.

includeCSSInlineFooter

Same as includeCSSInline but includes the style tag before </body>.

includeJSInline

All entries within that setting will be included as a script tag in the <head>. It can also include file contents as inline JS. To do so, set file = 1 fot that entry.
Supports minification.

includeJSInlineFooter

Same as includeJSInline but includes the script tag before </body>.

includeCSSDeferred

All entries within that setting will be loaded deferred via a small inline loading script.
The default loading script can be overwritten in settings.deferredCssLoadingScript.
Accepts only files.
Supports minification and concatenation.
Single files can be excluded from concatenation by setting excludeFromConcatenation = 1 in the files settings.

includeJSDeferred

All entries within that setting will be included as a script tag with the async and defer attribute.
Accepts only files.
Supports minification and concatenation.
Single files can be excluded from concatenation by setting excludeFromConcatenation = 1 in the files settings.

fontloader.googleFonts

All google font families within that setting will be loaded with the webfontloader.
The content of a font family must be the font family string from Google Fonts!

fontloader.customFonts

Allows you to load custom font families with the webfontloader.

fontloader.customFonts.families

Add the font family names here.

fontloader.customFonts.urls

The urls to the font family.

Overwriting default settings

All default settings are set in settings

settings.deferredCssLoadingScript

This setting contains the loading script to defer load CSS files.
This script must contain two markers wich will be replaced later:

Marker Description
###CSSFILE#### This marker will be replaced by the full path of the css file.
###SCRIPTNAME### This marker will be replaced by a generated hash to create a unique loading function.

settings.WFLLoadingScript

This setting contains the loading script to load the webfontloader.


All versions of typo3-assetloader with dependencies

PHP Build Version
Package Version
Requires typo3/cms-core Version ^7.6.0 || >=8.7.0 <9
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 sethorax/typo3-assetloader contains the following files

Loading the files please wait ....