Author: Manuel Lemos
Updated on: 2022-10-18
Posted on: 2022-10-18
Package: Laravel Cookie 18
This package provides a solution to present a confirmation dialog to request that the user confirm if they are adults.
When the users confirm their age, the site uses encrypted cookies to store the user response, so it no longer shows the adult confirmation dialog.
This way, this package helps adult site content owners comply with countries' laws that require that the sites restrict access to content to adult users.
About the Laravel Cookie 18 Package
The package Laravel Cookie 18 is one of the few PHP packages that was considered notable recently because it does something that is worth paying attention.
The basic purpose is: Ask the users to confirm they are adults
Here follows in more detail what it does:
This package can ask the users to confirm they are adults.
It provides a Laravel middleware class that makes the application present a dialog on the current Web page asking if the user is 18 years or older.
The class uses an encrypted cookie to store the information after the user confirms he is an adult, so next time the age confirmation dialog does not appear on the page anymore.
The Laravel Cookie 18 can be downloaded from download page or be installed using the PHP Composer tool following instructions in the Composer install instructions page.
This package was considered notable for implementing its benefits in a way that is worth noticing.
Notable PHP packages can be often considered innovative. If this package is also innovative, it can be nominated to the PHP Innovation Award and the author may win prizes and recognition for sharing innovative packages.
If you also developed your own notable or innovative packages consider sharing them, so you can also earn more visibility for your package as well nice prizes.
One nice prize that many PHP developers want and you may like is the PHP elePHPant mascot plush.
You need to be a registered user or login to post a comment
1,602,222 PHP developers registered to the PHP Classes site.
Be One of Us!
Login Immediately with your account on:
No comments were submitted yet.