Download the PHP package pringuin/dataprivacybundle without Composer

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

Dataprivacy Bundle for Pimcore

Add dataprivacy features (GDPR / DSGVO) to Pimcore

Version 2.x can be used for Pimcore 11 Use Version 1.x (branch pimcore-x) for Pimcore X Use Version 0.X (branch pimcore-6) for Pimcore 5/6

Features

Dependencies

This bundle does include the tarteaucitron.js script in the pringuin/DataprivacyBundle/Resources/public/js/tarteaucitron folder.

Installation

Composer Installation

  1. Add code below to your composer.json or install it via command line

Add the bundle

Add the bundle to your Kernel in src/Kernel.php like this:

You might also need to add it to pimcores config/bundles.php:

Install the assets

After you have installed the Dataprivacy Bundle via composer:

Configure trackers, tools and services

The backend configuration should now be available. below the search in your pimcore admin backend. You can set your tracking IDs (for example your UA-XXXXXXXX-X) there. This will generate files in the folder PIMCOREINSTALLATION/config/pringuin_dataprivacy. The file for the default site will be siteconfig_default.yml The next sites will follow the pimcore IDs and look like siteconfig_1.yml, siteconfig_2.yml. You can also change these files directly using your favorite IDE. They can be archived using git.

Installation into your template

To include the cookie consent into your frontend layout, you can use the following twig code. Simply insert it into your template (e.g. layout.html.twig) before the closing body Tag:

Hint: You can always override this template by implementing your own template in the folder PIMCOREINSTALLATION/app/Resources/pringuinDataprivacyBundle/views/default/default.html.twig

Adaption of button colors

You can always use your own css to override the default css of tarteaucitron. If you'd like to keep the default css but have all buttons in the same color (as required by TTDSG for example), you can use the following CSS:

Supported Tackers and Tools

This package does currently ship with the following trackers/tools integrations:

Note that you'll take care of the implementation of your video brick to make YouTube, Vimeo and Daily Motion work.

Sample code by breakone:

Add your own tracker or tool consent

If a tracker or tool is missing, please check if the tool is integrated into tarteaucitron.js first. You can do this using the source code or the official tarteaucitron.js website using the installation guide.

If the tracker or tool is not included into the tarteaucitron.js package, please integrate it there first (they accept pull requests). Alternatively you can directly include your custom service using this example code from tarteaucitron.js:

To get a tracker or tool which is included in the tarteaucitron.js package into this bundle, you'll have to do the following steps:

Add it to the default configuration

The default configuration is the base for all site specific configurations. Changes to the default configuration will also change your configuration files for the sites. The default configuration is located at Resources/var/defaultconfiguration.yml

Add the view output

The necessary code for the templates can be found in the tarteaucitron.js installation instructions easily. Simply select Free manual installation and scroll down to the next step. Search for your service to get the installation code, typically looking like this:

Add it to the other codes in the Resources/views/default/default.html.twig file and replace dynamic parameters like the data-secude-code above with twig values as shown in the currently implemented trackers and tools.

Add a translation

Finally add a backend translation entry in the file Resources/translations/admin.en.yml and/or admin.de.yml The key will be the same you used in the defaultconfiguration.yml. You can also append a _helptext to the key to insert a custom helptext for editors.

Final step

Test your implementation and please create a pull request in this repository so everybody can now use your newly implemented service, tracker or tool. Thanks!

Updating

Updating from 1.0 to 2.0

2.0 is the first release for Pimcore 11. Simply adapt your composer.json and run composer update as usually.

Execute: $ bin/console assets:install if it's not run by composer

You might also need to save your configuration again.

Updating from 0.5 to 1.0

1.0 is the first release for Pimcore X. Simply adapt your composer.json and run composer update as usually.

Since pimcore removed the pimcore_action from the twig template, you'll have to adjust your template installation.

Before:

Now:

You might also need to save your configuration again.

Updating from 0.4 to 0.5

To update to 0.5 simply adapt your composer.json and run composer update as usually. Depending on your installation you might need to run the command php bin/console assets:install web to install the new tarteaucitron.js version (1.9.5 is now included) if you installed as hard copy. This release does also add a new defaultconfiguration setting. You might need to save your configuration again.

Updating from initial version, 0.1, 0.2 or 0.3 to 0.4

To update from the first release or version 0.1/0.2 to 0.3 simply adapt your composer.json and run composer update as usually. Depending on your installation you might need to run the command php bin/console assets:install web to install the new tarteaucitron.js version (1.8.4 is now included) if you installed as hard copy.

Contributing

While we consider this bundle stable and ready for productive use, we'd be very happy if you'd support us and the whole pimcore community by improving this bundle with pull requests. This is our first public pimcore bundle so constructive feedback would be very welcome as well!

Copyright and license

Copyright: PRinguin GbR
For licensing details please visit LICENSE.md


All versions of dataprivacybundle with dependencies

PHP Build Version
Package Version
Requires pimcore/pimcore Version ^11
php Version ^8.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 pringuin/dataprivacybundle contains the following files

Loading the files please wait ....