Download the PHP package imagewize/simple-cookie-consent without Composer

On this page you can find all versions of the php package imagewize/simple-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 simple-cookie-consent

Simple Cookie Consent

A lightweight plugin that implements GDPR-compliant cookie consent functionality for WordPress websites using the vanilla-cookieconsent library.

Features

Installation

Method 1: Using WordPress Admin

  1. Download the plugin ZIP file from the releases page
  2. Go to your WordPress admin panel
  3. Navigate to Plugins > Add New > Upload Plugin
  4. Choose the downloaded ZIP file and click "Install Now"
  5. Activate the plugin

Method 2: Manual Installation

  1. Download the plugin ZIP file
  2. Extract the ZIP file
  3. Upload the extracted folder to your /wp-content/plugins/ directory
  4. Activate the plugin through the WordPress admin panel

Method 3: Build from Source

  1. Clone this repository
  2. Install dependencies:

  3. Build the plugin:

  4. Upload the plugin folder to your WordPress plugins directory

Method 4: Using Composer

You can also install the plugin using Composer:

Usage

After activation, the cookie consent banner will automatically appear on your website. Configure the settings from the WordPress admin panel at Settings > Cookie Consent.

Configuration

You can customize the plugin through the admin interface:

  1. Navigate to Settings > Cookie Consent in your WordPress dashboard
  2. Configure the following settings:
    • Language and general behavior
    • Banner title and description
    • Button text and actions
    • Privacy policy link
    • Cookie categories and patterns (NEW!)

NEW: Cookie Categories Management

The plugin now allows you to manage cookie categories and patterns directly through the admin interface:

This means you can easily configure which cookies to block and when to allow them, all without editing any code.

Cookie Categories

The default configuration includes:

Usage Examples

Blocking Google Analytics Until Consent

Add your Google Analytics script with the data-category attribute:

The script won't execute until the visitor accepts analytics cookies.

Managing Third-party Cookies

The plugin automatically handles third-party cookies by:

  1. Preventing scripts from loading until consent is given
  2. Clearing cookies if consent is withdrawn

For detailed implementation guides, see the dev.md documentation file.

Dependencies

Development

To set up the development environment:

License

This project is licensed under the MIT License - see the LICENSE file for details.


All versions of simple-cookie-consent with dependencies

PHP Build Version
Package Version
Requires php Version >=8.0
composer/installers Version ^2.0
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 imagewize/simple-cookie-consent contains the following files

Loading the files please wait ...