Download the PHP package madj2k/t3-klarokratie without Composer

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

Klarokratie

Includes Klaro! consent-manager into TYPO3. Completely file-based configuration for versioning without having to take care of database-entries.

This extension automatically adds a consent-overlay to embedded YouTube- and Vimeo-Videos.

More information on Klaro! can be found here:

UPGRADE v14 - Breaking Changes

Installation & Basic Configuration

Simply install the extension.

After installation you can define the path to your Klaro!-configuration in your site configuration (config/sites/<site>/config.yaml). You can also use extension-paths if you use a site-package.

Alternatively you can use this older notations (working, but discouraged for the sake of having clear namespaces):

If you do not define any configuration or custom CSS a default configuration with the default styles is used. However, you can explicitly disable the klaro! Consent Manager by using the following setting:

or - accordingly the discouraged (!!!) older versions -

Modular Configuration using Includes

Starting with the latest version, the Klarokratie extension supports a modular approach to configuration:

This allows you to separate reusable parts and keep your base config clean and minimal.

Example setup:

All configuration-scripts are delivered as a single combined JavaScript file to reduce HTTP requests. If no includes are defined, only the base config is loaded without merging. This is the default behavior. The extension already comes with several useful includes for common services:

These are located in:

You can use them directly or copy and customize them in your own site package. Note: if you use includes, the EXT:klarokratie/Resources/Public/Config/KlaroConfigMinimal.js is used instead of EXT:klarokratie/Resources/Public/Config/KlaroConfig.js

You can also override the default translations. You can find an example file here.

Just copy it to your site-extension and set your own translations. You can use it like so:

Advanced Configuration

Optional: Use Tracking-Code insertion for etracker or Google Analytics

Tracking-code insertion for etracker or Google Analytics is configured via site configuration (config/sites/<site>/config.yaml).

An enabled tracking-code-insertion would either include the current etracker-tracklet or the current Google Analytics tracking code.

Example configuration for etracker:

Example configuration for Google Analytics:

The following tracking options are available:

etracker

Google Analytics

There are also Klaro!-configuration-files for etracker and Google Analytics included. These files handle the cookie-opt-in for your tracking according to GDPR. You can use them by setting the desired file in your site configuration:

or

If you have a multi-site setup, define different tracking-options in each site's config.yaml.

For backwards compatibility, older site-configuration key names are still supported, but discouraged. Use the klarokratie namespace for new projects:

Optional: Categories for etracker (et_areas)

If you use etracker there is a lib-object included which you can use to set hierarchical categories.

IMPORTANT: In order to take effect, you have to use COA-objects in your lib-override-TypoScript!

Below you find a hypothetical example that sets the current domain as first category and as category of the second level the project-name is used that is fetched from the page-properties of the current page via the field "tx_example_project" as reference to table "tx_example_domain_model_project". The example below would result in the following category-value (et_areas) for etracker:

Re-Open Modal

If you want to show a menu-item on your website to re-open the modal, this extension adds a field tx_klarokratie_open_modal to the pages-table including the corresponding TCA-configuration for convenient switching using the page properties in the backend. You can use this field to render your menu accordingly and add the required JS to re-open the modal instead of a normal link to the page.

Example:

Custom CSS

It is possible to include a custom CSS-file for adaption the Klaro! overlay to your needs (see second line above). The CSS partly uses variables which you can override in your custom CSS:

Plain CSS

Example with SASS and Bootstrap

Testing

Generate the documentation as HTML

Execute in the extension-root:


All versions of t3-klarokratie with dependencies

PHP Build Version
Package Version
Requires php Version >=8.3
typo3/cms-core Version ~13.4.0 || ~14.3.0
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 madj2k/t3-klarokratie contains the following files

Loading the files please wait ...