Download the PHP package tdoescher/cokiban-bundle without Composer

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

Cookie-Banner der über die Contao config.yml konfiguriert wird

Diese Modul erzeugt einen Cookie-Banner der rein über die "config.yml" von contao konfiguriert und eingebunden wird.

Twig-Support

Um den Twig-Support zu gewährleisten gibt es in diesem Bundle eine angepaste Version des content_element/_base.html.twig Tempaltes, dies wird automatisch geladen.

Um Templates hinter den Cookie-Banner zu verstecken die das content_element/_base.html.twig Template nicht verwenden kann der Inhalte des Templates manuell mittels {{ cokiban_open() }} und {{ cokiban_close() }} umschlossen werden.

Scripte & Styles

Cokiban erfordert Alpine.js (https://alpinejs.dev). Im Seitenlayout kann Alpine.js mittels des js_alpine bei den JavaScript-Templates aktiviert werden. Außerdem muss das JavaScript-Template js_cokiban aktiviert werden, dieses importiert das JavaScript und die Stylesheets für das Banner.

Nutzt man gulp oder webpack können die Dateien über diese Pfade inkludiert werden:

Für das ce_cokiban_replacement.html Template verwende ich diesen CSS-Code:

bzw. diesen für die content_element/cokiban_replacement.html.twig Twig-Version:

Konfiguration

Die Konfiguration wird der config.yml hinzugefügt. Tipp: Der übersichtshalber kann man eine zusätzliche cokiban.yml erstellen und die Konfiguration in diese auslagern. Mittels imports: - { resource: cokiban.yml } kann diese importiert werden.

Link zum Cookiebanner / Inserttag

Um einen Link zu erzeugen der das Cookiebanner öffnet gibt es zwei Inserttags:

und:


All versions of cokiban-bundle with dependencies

PHP Build Version
Package Version
Requires php Version >=8.0
contao/core-bundle Version ^4.13 || ^5.0
tdoescher/alpinejs-bundle Version ^1
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 tdoescher/cokiban-bundle contains the following files

Loading the files please wait ....