Download the PHP package kunstmaan/cookie-bundle without Composer

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

KunstmaanCookieBundle

The Kunstmaan Cookie Bundle provides a cookie bar; detailed pop-up window and a similar page explaining each type of cookie used on the website.

All provide the ability to accept or decline certain cookies.

Original Contributors

Username Avatar
@sandergo90 sandergo90
@diskwriter diskwriter
@indrikenens indrikenens
@FVKVN FVKVN
@dbeerten dbeerten
@treeleaf treeleaf
@KMBenjaminSchodts KMBenjaminSchodts
@sector32 treeleaf

Enabling the bundle

Add to Appkernel.php

Add to routing.yml

Two ways to view the cookie implementation

1: Login into the CMS

2: enable the cookie bundle under Settings -> Cookie configuration

Importing the cookie bundle

Show cookie on page

Add following block to the main layout of your website

CSS: First Method

Apply all CSS by importing the legal.scss file into the vendors file of your project

CSS: Second method

Import the Kunstmaan Cookie Bundle variables and imports to be overridden. Copy the files at the following path to your project folder.

vendor/kunstmaan/cookie-bundle/Resources/ui/scss/config/_variables.scss vender/kunstmaan/cookie-bundle/Resources/ui/scss/config/_legal-imports.scss

Alter variables and comment imports to fit the project's styling.

Javascript

Via ES Module pattern

Via buildtool

You can include the compiled version in your buildtool - or directly in a template - via the following URL:

Global methods

The CookieBundle exposes some utility methods that you can include in your project.

Both these methods are also available on the global scope for projects that do not have bundlers:

Commands

Copy Cookiebar Resources to your project

Default command:

or, if you have previously generated files and wish to override them: php bin/console kuma:generate:legal --prefix will_ --demosite --overrideFiles

Migrate

Generate fixtures

Add the optin pagepart to your form pages.

We added an extra LegalOptInPagePart that behaves like a checkbox but adds the extra of a link to the privacy policy directly.

The pagepart will be generated in your bundle and you will have to include it in your pagepart configuration yaml file.

Easily generate links for your project that open the cookie modal:

Add by using this snippet you can easily add the necessary links to your project in custom places like a footer:

Overriding translations

If you want to override the translations of the cookie bundle, you need to add the following configuration in your config.yml beneath the existing kunstmaan_translator config.

Add visitor type to google analytics

We added the possibility to push a datalayer to google analytics with the type of visitor viewing your website. A new Config entity has been added where you can add the ip-addresses of clients or internal. Those ip's will be checked on request and a datalayer will be pushed.

If you want to use this functionality, please read the documentation for the Config Bundle to setup. When you did this, add the following snippet to your config.yml.

Following input field should be added to your layout.html.twig. You can add in beneath the kuma-cookie-bar element.

Increase version number when adding cookies/types or changing stuff the requires new cookie consent.

In the cookie configuration, there is a version number available. This version number can be increased in the CMS.

Contributing

We love contributions! If you're submitting a pull request, please follow the guidelines in the Submitting pull requests


All versions of cookie-bundle with dependencies

PHP Build Version
Package Version
Requires php Version ^8.1
doctrine/orm Version ^2.13
kunstmaan/admin-bundle Version ^7.0
kunstmaan/adminlist-bundle Version ^7.0
kunstmaan/generator-bundle Version ^7.0
kunstmaan/config-bundle Version ^7.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 kunstmaan/cookie-bundle contains the following files

Loading the files please wait ....