Download the PHP package tvup/eu-cookie-consent without Composer
On this page you can find all versions of the php package tvup/eu-cookie-consent. It is possible to download/install these versions without Composer. Possible dependencies are resolved automatically.
Download tvup/eu-cookie-consent
More information about tvup/eu-cookie-consent
Files in tvup/eu-cookie-consent
Package eu-cookie-consent
Short Description To make your site compliant to the EU GDPR law you can use this package and customize it to your needs.
License MIT
Homepage https://github.com/tvup/eu-cookie-consent
Informations about the package eu-cookie-consent
eu-cookie-consent helps you to stay conform with the EU cookie law
All sites owned by EU citizens or targeted towards EU citizens must comply with a crazy EU law. This law requires a dialog to be displayed to inform the users of your websites how cookies are being used. You can read more info on the legislation on the site of the European Commission.
This package provides an easily configurable view to display the message. Also included is JavaScript code to set a cookie when a user agrees with the cookie policy. The package will not display the dialog when that cookie has been set.
Installation
You can install the package via composer:
Optionally you can publish the following Files
Config
This is recommended since you can configure all the consents you want to get from the visitor.
Views
If you want to customize the look and feel of the Package
Language files
This package comes with multilanguage support out of the box. You can translate it to the Languages you want. Or just change the default Text.
Config
This is the heart of the Package you can define all the Cookies/Permissions you want to get form the User.
Usage
Popup
To enable the Popup you can use the following Code in your blade Files (it returns html code).
If you want to give the users the option to change the permissions just add another line
This gives you the possibility to call the dialog with the given user settings by javascript.
Just call the following js function and the popup will appear.
Permission
If you want to check if the user gave you a specific permission. You can just pass the key of the Cookie you defined in the config file.
Scripts/Imports ...
Very often we want to play out a specific Script Tag ... only if the user allowed us. You can define the Scripts in the config of the cookie. If you use the key header for example you can render them from all of the cookies.
Testing
Changelog
Please see CHANGELOG for more information what has changed recently.
Contributing
Please see CONTRIBUTING for details.
Security
If you discover any security related issues, please email [email protected] instead of using the issue tracker.
Credits
- Max Hutschenreiter
- All Contributors
License
The MIT License (MIT). Please see License File for more information.
Laravel Package Boilerplate
This package was generated using the Laravel Package Boilerplate.