Download the PHP package tvup/eu-cookie-consent without Composer

On this page you can find all versions of the php package tvup/eu-cookie-consent. It is possible to download/install these versions without Composer. Possible dependencies are resolved automatically.

FAQ

After the download, you have to make one include require_once('vendor/autoload.php');. After that you have to import the classes with use statements.

Example:
If you use only one package a project is not needed. But if you use more then one package, without a project it is not possible to import the classes with use statements.

In general, it is recommended to use always a project to download your libraries. In an application normally there is more than one library needed.
Some PHP packages are not free to download and because of that hosted in private repositories. In this case some credentials are needed to access such packages. Please use the auth.json textarea to insert credentials, if a package is coming from a private repository. You can look here for more information.

  • Some hosting areas are not accessible by a terminal or SSH. Then it is not possible to use Composer.
  • To use Composer is sometimes complicated. Especially for beginners.
  • Composer needs much resources. Sometimes they are not available on a simple webspace.
  • If you are using private repositories you don't need to share your credentials. You can set up everything on our site and then you provide a simple download link to your team member.
  • Simplify your Composer build process. Use our own command line tool to download the vendor folder as binary. This makes your build process faster and you don't need to expose your credentials for private repositories.
Please rate this library. Is it a good library?

Informations about the package eu-cookie-consent

eu-cookie-consent helps you to stay conform with the EU cookie law

Latest Version on Packagist Build Status Total Downloads

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 of your websites how cookies are being used. You can read more info on the legislation on the site of the European Commission.

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.

Installation

You can install the package via composer:

Optionally you can publish the following Files

Config

This is recommended since you can configure all the consents you want to get from the visitor.

Views

If you want to customize the look and feel of the Package

Language files

This package comes with multilanguage support out of the box. You can translate it to the Languages you want. Or just change the default Text.

Config

This is the heart of the Package you can define all the Cookies/Permissions you want to get form the User.

Usage

Popup

To enable the Popup you can use the following Code in your blade Files (it returns html code).

If you want to give the users the option to change the permissions just add another line

This gives you the possibility to call the dialog with the given user settings by javascript.

Just call the following js function and the popup will appear.

Permission

If you want to check if the user gave you a specific permission. You can just pass the key of the Cookie you defined in the config file.

Scripts/Imports ...

Very often we want to play out a specific Script Tag ... only if the user allowed us. You can define the Scripts in the config of the cookie. If you use the key header for example you can render them from all of the cookies.

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

License

The MIT License (MIT). Please see License File for more information.

Laravel Package Boilerplate

This package was generated using the Laravel Package Boilerplate.


All versions of eu-cookie-consent with dependencies

PHP Build Version
Package Version
Requires php Version ^8.2
ext-dom Version *
ext-mbstring Version *
illuminate/support Version *
Composer command for our command line client (download client) This client runs in each environment. You don't need a specific PHP version etc. The first 20 API calls are free. Standard composer command

The package tvup/eu-cookie-consent contains the following files

Loading the files please wait ....