PHPackages                             artisanpack-ui/privacy - PHPackages - PHPackages  [Skip to content](#main-content)[PHPackages](/)[Directory](/)[Categories](/categories)[Trending](/trending)[Leaderboard](/leaderboard)[Changelog](/changelog)[Analyze](/analyze)[Collections](/collections)[Log in](/login)[Sign up](/register)

1. [Directory](/)
2. /
3. [Authentication &amp; Authorization](/categories/authentication)
4. /
5. artisanpack-ui/privacy

ActiveLibrary[Authentication &amp; Authorization](/categories/authentication)

artisanpack-ui/privacy
======================

Privacy and data protection toolkit for Laravel — consent management, data subject rights, and multi-regulation compliance (GDPR, CCPA, LGPD, PIPEDA).

1.0.0(today)00MITPHPPHP ^8.2CI passing

Since Jun 20Pushed todayCompare

[ Source](https://github.com/ArtisanPack-UI/privacy)[ Packagist](https://packagist.org/packages/artisanpack-ui/privacy)[ RSS](/packages/artisanpack-ui-privacy/feed)WikiDiscussions main Synced today

READMEChangelog (1)Dependencies (13)Versions (2)Used By (0)

ArtisanPack UI Privacy
======================

[](#artisanpack-ui-privacy)

[![CI](https://github.com/ArtisanPack-UI/privacy/actions/workflows/ci.yml/badge.svg)](https://github.com/ArtisanPack-UI/privacy/actions/workflows/ci.yml)[![Coverage](https://camo.githubusercontent.com/b2018fad8f881de2254dedb22bb7bc8e7e4b78cec6a4ad86f2dbb955e1b6f750/68747470733a2f2f696d672e736869656c64732e696f2f62616467652f636f7665726167652d38302532352532422d627269676874677265656e2e737667)](https://github.com/ArtisanPack-UI/privacy/actions/workflows/ci.yml)[![License](https://camo.githubusercontent.com/7013272bd27ece47364536a221edb554cd69683b68a46fc0ee96881174c4214c/68747470733a2f2f696d672e736869656c64732e696f2f62616467652f6c6963656e73652d4d49542d626c75652e737667)](LICENSE)

A comprehensive privacy and data-protection package for Laravel applications. Cookie consent, data subject rights (access / export / deletion / rectification), breach notification, multi-regulation support (GDPR, CCPA, LGPD, PIPEDA), and a built-in admin dashboard — with Livewire **and** React **and** Vue front-ends.

Highlights
----------

[](#highlights)

- 🍪 **Cookie consent banner + preferences UI** in Livewire, React, and Vue
- 📋 **Data subject rights** workflow — verified, audited, optionally auto-processed
- 🌍 **Multi-regulation engine** — GDPR, CCPA out of the box; LGPD and PIPEDA toggles
- 📊 **Admin dashboard** — consent manager, request manager, compliance reports, breach manager
- 🛡 **Breach notification** — GDPR Article 33/34 authority + user templates
- 🧰 **Artisan tooling** — `privacy:install`, `privacy:scan`, `privacy:purge-expired`, `privacy:process-requests`, `privacy:report`
- ♻️ **Policy management + re-consent** flow when terms change
- 🔌 **Event-driven** — every consent change, request, and breach emits an event you can listen for

Requirements
------------

[](#requirements)

- PHP 8.2+ for Laravel 10, 11, or 12
- PHP 8.3+ for Laravel 13
- Livewire 3 (optional — only required if you use the Livewire components)

Installation
------------

[](#installation)

```
composer require artisanpack-ui/privacy
php artisan privacy:install
```

The install command publishes config, migrations, views, breach-notification templates, and the admin layout; runs migrations; seeds default consent categories; clears caches; and prints the admin gate stub plus next steps.

### Non-interactive install (CI/CD)

[](#non-interactive-install-cicd)

```
php artisan privacy:install --no-interaction --force
```

### React / Vue projects

[](#react--vue-projects)

Components live in the package and are importable through subpath imports:

```
// React
import { CookieBanner, ConsentPreferences } from '@artisanpack-ui/privacy/react'
import { ComplianceReport } from '@artisanpack-ui/privacy/react/admin'

// Vue
import CookieBanner from '@artisanpack-ui/privacy/vue/CookieBanner.vue'
```

The React/Vue components hit the same JSON API the Livewire components do, so back-end behavior (rate limits, validation, verification) is identical regardless of the chosen front-end.

See [INSTALLATION.md](INSTALLATION.md) for the full setup walkthrough.

Quick start
-----------

[](#quick-start)

```
{{-- Drop the cookie banner into your main layout --}}

{{-- Render the privacy dashboard for the authenticated user --}}

{{-- Gate content on consent --}}
@hasConsent('analytics')

@endhasConsent
```

```
use ArtisanPackUI\Privacy\Facades\Privacy;

// Record consent programmatically
Privacy::consent()->grant($user, 'analytics');

// Submit a data subject request on the user's behalf
Privacy::dataRequests()->createExportRequest($user);
```

Documentation
-------------

[](#documentation)

- [INSTALLATION.md](INSTALLATION.md) — full setup including queue/scheduler wiring
- [CONFIGURATION.md](CONFIGURATION.md) — every config key explained
- [docs/](docs/) — feature guides and API reference

### Feature guides

[](#feature-guides)

- [Cookie consent setup](docs/guides/cookie-consent.md)
- [Data subject rights](docs/guides/data-subject-rights.md)
- [Admin dashboard customization](docs/guides/admin-dashboard.md)
- [Multi-regulation setup](docs/guides/multi-regulation.md)
- [View customization](docs/guides/view-customization.md)
- [React / Vue integration](docs/guides/react-vue.md)

### API reference

[](#api-reference)

- [Services](docs/api/services.md)
- [Models](docs/api/models.md)
- [Events](docs/api/events.md)
- [Helpers](docs/api/helpers.md)
- [Blade directives](docs/api/blade-directives.md)
- [JavaScript API](docs/api/javascript.md)

Artisan commands
----------------

[](#artisan-commands)

CommandPurpose`privacy:install`Publish assets, migrate, seed default categories, print gate stub`privacy:scan`Discover personal-data columns in your models`privacy:purge-expired`Withdraw or prune expired consents`privacy:process-requests`Auto-process pending access + export requests`privacy:report`Generate consent / request / breach compliance reportsSchedule the recurring commands in `bootstrap/app.php` (Laravel 11+):

```
->withSchedule(function (Schedule $schedule): void {
    $schedule->command('privacy:purge-expired')->daily();
    $schedule->command('privacy:process-requests')->daily();
    $schedule->command('privacy:report --period=month --email=dpo@example.com')
        ->monthlyOn(1, '08:00');
})
```

Testing
-------

[](#testing)

```
composer test                                # full suite
./vendor/bin/pest tests/Feature/Console      # one suite
./vendor/bin/pest --filter=cookie            # one test
```

The package ships with 400+ Pest tests covering all services, models, Livewire components, Artisan commands, middleware, events, and listeners.

Upgrading
---------

[](#upgrading)

See [UPGRADING.md](UPGRADING.md) for version-to-version migration notes.

Changelog
---------

[](#changelog)

See [CHANGELOG.md](CHANGELOG.md) for release history.

Contributing
------------

[](#contributing)

As an open source project, this package is open to contributions from anyone. Please [read through the contributing guidelines](CONTRIBUTING.md) to learn more about how you can contribute to this project.

License
-------

[](#license)

MIT — see [LICENSE](LICENSE).

###  Health Score

39

—

LowBetter than 85% of packages

Maintenance100

Actively maintained with recent releases

Popularity0

Limited adoption so far

Community6

Small or concentrated contributor base

Maturity45

Maturing project, gaining track record

 Bus Factor1

Top contributor holds 100% of commits — single point of failure

How is this calculated?**Maintenance (25%)** — Last commit recency, latest release date, and issue-to-star ratio. Uses a 2-year decay window.

**Popularity (30%)** — Total and monthly downloads, GitHub stars, and forks. Logarithmic scaling prevents top-heavy scores.

**Community (15%)** — Contributors, dependents, forks, watchers, and maintainers. Measures real ecosystem engagement.

**Maturity (30%)** — Project age, version count, PHP version support, and release stability.

###  Release Activity

Cadence

Unknown

Total

1

Last Release

0d ago

### Community

Maintainers

![](https://www.gravatar.com/avatar/ba2a2c40c9a93470595cd10701d2291434f3a7db61862d9700a9e69e31608c6c?d=identicon)[JacobMartellaWebDesign](/maintainers/JacobMartellaWebDesign)

---

Top Contributors

[![ViewFromTheBox](https://avatars.githubusercontent.com/u/8247489?v=4)](https://github.com/ViewFromTheBox "ViewFromTheBox (44 commits)")

---

Tags

compliancecookie-consentgdprlaravellaravel-packagephpprivacy

###  Code Quality

TestsPest

Code StyleLaravel Pint

### Embed Badge

![Health badge](/badges/artisanpack-ui-privacy/health.svg)

```
[![Health](https://phpackages.com/badges/artisanpack-ui-privacy/health.svg)](https://phpackages.com/packages/artisanpack-ui-privacy)
```

###  Alternatives

[psalm/plugin-laravel

Psalm plugin for Laravel

3325.1M337](/packages/psalm-plugin-laravel)[tallstackui/tallstackui

TallStackUI is a powerful suite of Blade components that elevate your workflow of Livewire applications.

721160.4k12](/packages/tallstackui-tallstackui)[hasinhayder/tyro

Tyro - The ultimate Authentication, Authorization, and Role &amp; Privilege Management solution for Laravel 12 &amp; 13

6753.6k5](/packages/hasinhayder-tyro)[helsingborg-stad/municipio

A bootstrap theme for creating municipality sites.

4028.3k10](/packages/helsingborg-stad-municipio)[masterix21/laravel-licensing

Laravel licensing package with polymorphic assignment to any model, activation keys, expirations/renewals, and seat control via LicenseUsage. Supports offline verification with public-key–signed tokens, a CLI to generate/rotate/revoke keys, and an extensible architecture via config and contracts.

1432.1k4](/packages/masterix21-laravel-licensing)

PHPackages © 2026

[Directory](/)[Categories](/categories)[Trending](/trending)[Changelog](/changelog)[Analyze](/analyze)
