Download the PHP package macsidigital/laravel-cookie-consent without Composer
On this page you can find all versions of the php package macsidigital/laravel-cookie-consent. It is possible to download/install these versions without Composer. Possible dependencies are resolved automatically.
Download macsidigital/laravel-cookie-consent
More information about macsidigital/laravel-cookie-consent
Files in macsidigital/laravel-cookie-consent
Package laravel-cookie-consent
Short Description Laravel cookie consent package
License MIT
Homepage https://github.com/MacsiDigital/laravel-cookie-consent
Informations about the package laravel-cookie-consent
Laravel Cookie Consent
A little package for the EU cookie consent law
A little package to handle cookie consent. All EU sites or sites targeted at EU citizens must comply with the european law, requesting consent to add cookies to the users comupter.
Support us
We invest a lot in creating open source packages, and would be grateful for a sponsor if you make money from your product that uses them.
Installation
This package can be used in Laravel 6.0 or higher.
You can install the package via composer:
We then need to install the assets:
This will publish a config file, the views and language files
AJAX Requests and Styling
Out of the box we use axios to make the AJAX request, this can be changed by editing the blade template.
We also use Tailwind CSS for styling, again this can be changed by editing the template.
If you want to use the defaults, then you will need to import the required dependencies.
Usage
To use we just need to add a blade include just before the end body tag
To amend the design just go into the resources views folder and amend 'widget.blade.php'. Note we have used inline styles so that we are not reliant on any design framework. But we would recommend changing this to use something like tailwind.
Finally the more info will try to direct to a route '/cookie-policy', you will need to create this route yourself in your routes file, as well as the template file that lists your cookie policy.
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
- Colin Hall
- Macsi Digital
- All Contributors
License
The MIT License (MIT). Please see License File for more information.