|
1 |
| -# Make your Laravel app comply with the crazy EU cookie law |
| 1 | +# Simple, customizable cookie consent message for Laravel |
2 | 2 |
|
3 | 3 | [](https://packagist.org/packages/spatie/laravel-cookie-consent)
|
4 | 4 | [](LICENSE.md)
|
5 | 5 | [](https://github.com/spatie/laravel-cookie-consent/actions/workflows/run-tests.yml)
|
6 | 6 | [](https://packagist.org/packages/spatie/laravel-cookie-consent)
|
7 | 7 |
|
8 |
| -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 when you are using _tracking_ cookies. You can read more info on the legislation on [the site of the European Commission](https://commission.europa.eu/resources-partners/europa-web-guide/design-content-and-development/privacy-security-and-legal-notices/cookies-and-similar-technologies_en). Be aware using cookies for a site/web app that is not used for tracking (for example: session cookies) do not fall under this obligation |
| 8 | +This package adds a simple, customizable cookie consent message to your site. When the site loads, the banner appears and lets users consent to cookies. Once consent is given, the banner hides and stays hidden. |
9 | 9 |
|
10 |
| -quote: |
11 |
| -``` |
12 |
| -Cookies and similar technologies requiring consent |
13 |
| -
|
14 |
| -Cookies and similar technologies that generally DO need consent |
15 |
| -
|
16 |
| - Social plug-in tracking mechanisms |
17 |
| - Third party advertising cookies |
18 |
| - Analytics cookies (except for the exemption described further below) |
| 10 | +**What this package does not:** |
| 11 | +- Include an option to 'Decline' all cookies, which might be required. |
| 12 | +- Block trackers and cookies before consent. You need to handle this yourself. |
| 13 | +- Include options for different consent categories like "Necessary" or "Marketing". |
19 | 14 |
|
20 |
| -Cookies and similar technologies that generally do NOT need consent |
21 |
| -
|
22 |
| - User entrada cookies, for the duration of a session |
23 |
| - Authentication cookies, for the duration of a session |
24 |
| - User centric security cookies, used to detect authentication abuses and linked to the functionality explicitly requested by the user, for a limited persistent duration |
25 |
| - Multimedia content player session cookies, such as flash player cookies, for the duration of a session |
26 |
| - Load balancing session cookies, for the duration of a session |
27 |
| - User interface customisation cookies, for a browser session or a pocos hours, unless additional information in a prominent location is provided (e.g. “uses cookies” written next to the customisation feature) |
28 |
| -``` |
29 |
| - |
30 |
| -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. |
| 15 | +For more advanced cookie consent options in Laravel, consider these alternatives. |
31 | 16 |
|
32 |
| -Spatie is a web design agency based in Antwerp, Belgium. You'll find an overview of all our open source projects [on our website](https://spatie.be/opensource). |
| 17 | +- [whitecube/laravel-cookie-consent](https://github.com/whitecube/laravel-cookie-consent) |
| 18 | +- [statikbe/laravel-cookie-consent](https://github.com/statikbe/laravel-cookie-consent) |
33 | 19 |
|
34 | 20 | ## Support us
|
35 | 21 |
|
@@ -148,7 +134,7 @@ class Kernel extends HttpKernel
|
148 | 134 | This will automatically add `cookie-consent::index` to the content of your response right before the closing body tag.
|
149 | 135 |
|
150 | 136 | ## Notice
|
151 |
| -The legislation is pretty very vague on how to display the warning, which texts are necessary, and what options you need to provide. This package will go a long way towards compliance, but if you want to be 100% sure that your website is ok, you should consult a legal expert. |
| 137 | +We are not lawyers and can't provide legal advice. Consult legal professionals what rules apply to your project. |
152 | 138 |
|
153 | 139 | ## Changelog
|
154 | 140 |
|
|
0 commit comments