Download the PHP package edulazaro/wirecookies without Composer

On this page you can find all versions of the php package edulazaro/wirecookies. 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 wirecookies

Wirecookies

Drop-in cookie consent banner and preferences modal for Laravel, Livewire and Alpine. Pure CSS, no Tailwind. Themeable through the wire* family CSS variables, so it shares its look with wiremodal and wiretoast. GDPR / AEPD friendly: granular categories, re-openable preferences, multilingual, and it tracks nothing of its own.

Requirements

Features

Install

The service provider is auto-discovered.

Wirecookies ships a single stylesheet (wirecookies.css) and no JS of its own — it relies on Alpine and on wiremodal's JS for the modal.

Styles (Vite)

Import the stylesheet from your resources/css/app.css, after a wire* family base (wiremodal or wiretoast) that defines the theme tokens:

Bundle wiremodal's JS too (needed to open/close the preferences modal):

Prefer a copy you can edit? Publish the CSS into your app and @import that instead:

Publish config, translations and views (optional)

Usage

Drop the component once, near the end of your layout:

First-time visitors get the banner. Once they choose, the banner is replaced by a floating button that reopens the preferences modal.

Theming

Wirecookies styles itself: its CSS ships sensible light defaults, so it looks right on its own with nothing else loaded. Each token is also wired to the shared --wire-* family variables, so if you set data-wire-theme on a parent — with wiremodal or wiretoast loaded, since they define those variables — wirecookies automatically adopts that theme and matches your modals and toasts:

Without it, the built-in defaults apply. Wirecookies doesn't ship its own named theme catalog — it borrows the family's. See wiremodal/wiretoast for the available themes.

Configuration

Edit config/wirecookies.php after publishing it:

Key Description
policy_url Link to your cookie policy. A string (same for every language) or an array per locale (['es' => '/cookies', 'en' => '/en/cookies']). null hides the link.
delay Milliseconds before the banner appears (default 800).
categories The consent groups. Each holds behavior only (required, default); the text comes from translations. Add label / description to a category here to override its translation.
storage_key localStorage key for the saved preferences (default cookie-preferences).

Reading consent

Preferences are a plain object in localStorage, and they are broadcast whenever the user saves:

Internationalization

Wirecookies ships Spanish (es) and English (en). Strings follow app()->getLocale() and fall back to app.fallback_locale.

Component props

All props are optional. Text props default to the translation; pass one to override it for that render.

Prop Default Description
policy-url config Cookie policy link (string or per-locale array).
delay config Milliseconds before the banner shows.
categories config Override the consent groups.
storage-key config localStorage key.
title translation Banner / floating-button title.
description translation Banner description.
accept-all translation "Accept all" button.
reject-all translation "Reject all" button.
configure translation "Configure" button.
save-preferences translation Modal save button.
reject-optional translation Modal reject-optional button.
more-policy translation Inline policy link in the banner.
view-full-policy translation Policy link in the modal footer.
modal-title translation Preferences modal title.
always-active translation Badge on required (essential) categories.

Sponsors

Wirecookies is supported by the following sponsors. Thank you for keeping it growing:

Kenodo     AndorraDev

Author

Created by Edu Lazaro

License

Wirecookies is open-sourced software licensed under the MIT license.


All versions of wirecookies with dependencies

PHP Build Version
Package Version
Requires php Version ^8.2
edulazaro/wiremodal Version ^1.1
illuminate/support Version ^11.0 || ^12.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 edulazaro/wirecookies contains the following files

Loading the files please wait ...