PHP Classes

Laravel Privacy User Cookie: Show message to ask user permission to use cookies

Recommend this page to a friend!
  Info   Documentation   Demos   View files Files   Install with Composer Install with Composer   Download Download   Reputation   Support forum   Blog    
Ratings Unique User Downloads Download Rankings
Not yet rated by the usersTotal: 37 All time: 10,955 This week: 455Up
Version License PHP version Categories
laravelcookie 1.0.0MIT/X Consortium ...5HTTP, PHP 5, Libraries, Security
Description 

Author

This package can show the message to ask the user permission to use cookies.

It provides a middleware class for Laravel applications that checks if the current user browser has a given cookie set.

If the given cookie is missing, the package makes the current page show a message with a warning asking the user to allow the current site to use cookies.

The displayed message output includes CSS and JavaScript to set a cookie if the user clicks on a button saying that he accepts the site's cookies.

Innovation Award
PHP Programming Innovation award nominee
July 2022
Number 3
Many sites are now asking users if they can use cookies to track users that visit a site.

This request implementation usually works by showing a message on a page with a button that the users can click to tell the site they can use cookies.

This package implements a solution for this approach that will work in Laravel applications.

Manuel Lemos
Picture of adam berger
  Performance   Level  
Name: adam berger <contact>
Classes: 23 packages by
Country: Poland Poland
Age: ???
All time rank: 74521 in Poland Poland
Week rank: 170 Up1 in Poland Poland Up
Innovation award
Innovation award
Nominee: 8x

Winner: 2x

Documentation

laravelCookie

Jest to sposób na wprowadzenie do laravel ciasteczka informacyjnego np. polityka prywatno?ci

This is a way of introducing an information cookie, e.g. a privacy policy, into the laravel

Kolejn? spraw? jest przypisanie naszego Middleware do karnelu w app/http/ tak ?eby box by? widocznby na wszystkich stronach www

Another thing is assigning our Middleware to the carnel in the app / http / so that the box would be visible on all websites

MiddlewareKarnel

Nast?pnie dodajemy nazw? ciastecza do Middleware w app/http/Middleware/EncryptCookies.php

Then we add the cookie name to Middleware in app/http/Middleware/EncryptCookies.php

MiddlewareEncrypt

I tak oto mo?emy si? cieszy? wyskakuj?cym boksem Cookie

And so here we can enjoy Cookie pop-up box

MiddlewarePolitykaPrywatnsci

Powodzenia


  COOKIE W LARAVEL 9External page  
  Files folder image Files (4)  
File Role Description
Files folder imageapp (1 directory)
Files folder imageresources (1 directory)
Accessible without login Plain text file LICENSE Lic. License text
Accessible without login Plain text file README.md Doc. Documentation

  Files folder image Files (4)  /  app  
File Role Description
Files folder imageHttp (1 directory)

  Files folder image Files (4)  /  app  /  Http  
File Role Description
Files folder imageMiddleware (1 file)

  Files folder image Files (4)  /  app  /  Http  /  Middleware  
File Role Description
  Plain text file CoockieMiddleware.php Class Class source

  Files folder image Files (4)  /  resources  
File Role Description
Files folder imageviews (1 file)

  Files folder image Files (4)  /  resources  /  views  
File Role Description
  Accessible without login Plain text file index.blade.php Aux. Auxiliary script

The PHP Classes site has supported package installation using the Composer tool since 2013, as you may verify by reading this instructions page.
Install with Composer Install with Composer
 Version Control Unique User Downloads Download Rankings  
 100%
Total:37
This week:0
All time:10,955
This week:455Up