Download the PHP package studiomitte/klaro without Composer

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

TYPO3 Extension klaro

This is another cookie consent solution using klaro.

Translations for the following languages are included: de, el, es, fr, hr, hu, it, nl, pl, ro, sk, sl, sr.

Usage

1. Install extension

Use either composer composer require studiomitte/klaro or install the extension via Extension Manager.

2. Setup configuration in sites module

Switch to the sites module and configure the extension. All configurations are described below.

3. Adopt configuration to your needs

Copy one of the JavaScript files in EXT:klaro/Resources/Public/Example/ to your theme extension (or fileadmin), adopt it to your needs and define the path to the file in the site configuration.

Configuration

Site Configuration

The sites module is used for the main configuration.

The following options are available:

Klaro configuration

Klaro is using a JSON file for its configuration. An example:

This example will load show 2 apps, Google Tag Manager which is always loaded and Google Analytics. The latter will be loaded by GTM and the callback must be used to actually load it only if the consent is given by the user.

See https://klaro.kiprotect.com/#getting-started for all configuration options

Inline code

To load inline code only after consent, use an example like below:

The src attribute is changed to data-src and the attribute data-name="googleAnalytics" which correlates with the name of the app above. The JavaScript is then only evaluated if the consent is given.

Privacy Page

It is required that users can change their consent. This is possible by linking to the following pseudo urls.

Use the following pseudo-links

The urls will be replaced dynamically by a JavaScript link which will then trigger the consent modal.

Styling

If the configuration Style prefix is set, it is used as a prefix and you can apply your own CSS rules. The SCSS files in EXT:klaro/Resources/Private/Scss/ should be copied to your frontend pipeline and modified to your needs.

Credits

This extension was created by Georg Ringer for Studio Mitte, Linz with ♥.

Find more TYPO3 extensions we have developed that provide additional features for TYPO3 sites.


All versions of klaro with dependencies

PHP Build Version
Package Version
Requires php Version ^7.4 || ^8.0
typo3/cms-core Version ^9 || ^10 || ^11
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 studiomitte/klaro contains the following files

Loading the files please wait ....