Download the PHP package weble/laravel-cookiebar without Composer
On this page you can find all versions of the php package weble/laravel-cookiebar. It is possible to download/install these versions without Composer. Possible dependencies are resolved automatically.
Download weble/laravel-cookiebar
More information about weble/laravel-cookiebar
Files in weble/laravel-cookiebar
Package laravel-cookiebar
Short Description Laravel Cookies Consent Management for the new EU Cookie LAW
License MIT
Homepage https://github.com/Weble/laravel-cookiebar
Informations about the package laravel-cookiebar
Laravel Cookies Consent Management with GTM ConsentMode
Laravel package for the new EU Cookie LAW. Provides a nice toolbar with a modal to select which consent
Installation
Publish Assets
Copy the assets required to run the laravel cookiebar into your project. This includes the javascript file, the language files and the views.
Publish All
Publish Only Views
Publish Only Assets
Publish Only Translations
Config - Optional
You can also optionally publish the configuration file.
Also, remember to follow the installation instructions for Spatie GoogleTagManager, which is included in this package and required to correctly use the cookeibar.
Usage
Once you've correctly Setup Spatie GoogleTagManager, be sure to set the option in the cookiebar configuration file to fit your needs.
Most of all, remember to enable the cookiebar and set the consents you need.
Include in your layout according to your needs, usually before closing the body tag;
Include before ;
Reopening the consent modal.
You can reopen the consent modal by calling
Usually this is done in a link / button in the footer of your website.
Customizations
By default the cookiebar is styled using Tailwind CSS.
Add this configuration to your file to set the colors
Add this configuration to your file to set the checkbox icon
You can publish the views, assets and translations, and then edit the files in resources/view/vendor/cookiebar/
to better suit your needs.
All versions of laravel-cookiebar with dependencies
illuminate/support Version ^8.0|^9.0|^10.0|^11.0
illuminate/view Version ^8.0|^9.0|^10.0|^11.0
illuminate/cookie Version ^8.0|^9.0|^10.0|^11.0
spatie/laravel-package-tools Version ^1.9
spatie/laravel-googletagmanager Version ^2.6