pola5h/gdpr-cookie-consent-manager

A modern, flexible, and production-ready GDPR Cookie Consent Manager package for Laravel 12.

dev-main 2025-06-14 09:47 UTC

This package is not auto-updated.

Last update: 2025-06-15 07:59:41 UTC


README

A modern, flexible, and production-ready GDPR Cookie Consent Manager package for Laravel 12.

Features

  • Customizable Cookie Consent Banner
  • Consent Logging
  • Admin Panel
  • Auto-blocking of Scripts
  • Localization
  • Easy Integration
  • Geo-targeting (Optional)
  • Artisan Maintenance Commands

Installation

  1. Require the package:
    composer require pola5h/gdpr-cookie-consent-manager
  2. Publish assets & config:
    php artisan vendor:publish --provider="Pola5h\\GdprCookieConsentManager\\Providers\\GdprCookieServiceProvider"
  3. Run migrations:
    php artisan migrate

Usage

  • Add @gdprCookieConsent Blade directive before </body> in your layout.
  • Access admin panel at /gdpr-cookie-admin (configurable).
  • Manage banner, categories, and logs from the admin panel.

Customization

  • Edit config/gdprcookie.php for appearance, categories, and settings.
  • Add or edit translations in lang/{locale}/messages.php.
  • Override views by publishing them and editing in resources/views/vendor/gdprcookie/.

Troubleshooting

  • Ensure you have run migrations and published assets.
  • Check config and language files for missing keys.
  • For help, contact kzaman3055@gmail.com.

Support & Donations

If you find this package useful, please consider supporting its development! See DONATE.md for Binance Pay and crypto donation options.

License

This project is open source under the MIT License. See the LICENSE file for details.