PHPackages                             luyadev/luya-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. [Utility &amp; Helpers](/categories/utility)
4. /
5. luyadev/luya-privacy

ActiveLuya-extension[Utility &amp; Helpers](/categories/utility)

luyadev/luya-privacy
====================

The LUYA Privacy extension provides helpers for privacy.

1.1.2(4y ago)425.5k↓31.3%3[4 issues](https://github.com/luyadev/luya-privacy/issues)MITPHPCI failing

Since Jul 18Pushed 2y ago2 watchersCompare

[ Source](https://github.com/luyadev/luya-privacy)[ Packagist](https://packagist.org/packages/luyadev/luya-privacy)[ Docs](http://luya.io)[ RSS](/packages/luyadev-luya-privacy/feed)WikiDiscussions master Synced 1mo ago

READMEChangelog (10)Dependencies (1)Versions (11)Used By (0)

 [![LUYA Logo](https://raw.githubusercontent.com/luyadev/luya/master/docs/logo/luya-logo-0.2x.png)](https://raw.githubusercontent.com/luyadev/luya/master/docs/logo/luya-logo-0.2x.png)

LUYA privacy extension
======================

[](#luya-privacy-extension)

[![LUYA](https://camo.githubusercontent.com/c30b61934591d3a6fcb8718a93fd61bf840c0abd8a8d49aa0fdd4ab99567bdf4/68747470733a2f2f696d672e736869656c64732e696f2f62616467652f506f776572656425323062792d4c5559412d627269676874677265656e2e737667)](https://luya.io)[![Tests](https://github.com/luyadev/luya-privacy/workflows/Tests/badge.svg)](https://github.com/luyadev/luya-privacy/workflows/Tests/badge.svg)[![Latest Stable Version](https://camo.githubusercontent.com/f0a47f0632d4593db142e822bf58a93de5ec47fb12cc7a2cc159b1d7f171e69e/68747470733a2f2f706f7365722e707567782e6f72672f6c7579616465762f6c7579612d707269766163792f762f737461626c65)](https://packagist.org/packages/luyadev/luya-privacy)[![Total Downloads](https://camo.githubusercontent.com/e5e272d49006a265c1b5c9caf77330447515db528da8940381d91ed00c819d94/68747470733a2f2f706f7365722e707567782e6f72672f6c7579616465762f6c7579612d707269766163792f646f776e6c6f616473)](https://packagist.org/packages/luyadev/luya-privacy)[![Maintainability](https://camo.githubusercontent.com/ce1669576b226da0b8c3fc34dc59fd4338467dd323db421215f6328d74012586/68747470733a2f2f6170692e636f6465636c696d6174652e636f6d2f76312f6261646765732f66346162306465363038623232393631383939642f6d61696e7461696e6162696c697479)](https://codeclimate.com/github/luyadev/luya-privacy/maintainability)[![Test Coverage](https://camo.githubusercontent.com/4644baf3ebe43a264b6ede323f41e927528aadf08bfaded826760e20c87dbfea/68747470733a2f2f6170692e636f6465636c696d6174652e636f6d2f76312f6261646765732f66346162306465363038623232393631383939642f746573745f636f766572616765)](https://codeclimate.com/github/luyadev/luya-privacy/test_coverage)[![Slack Support](https://camo.githubusercontent.com/3574a291a5d77f541be2a9aebff47cf60ed44274b70f9d90bdf6d0d7f4911892/68747470733a2f2f696d672e736869656c64732e696f2f62616467652f536c61636b2d6c7579616465762d79656c6c6f77677265656e2e737667)](https://slack.luya.io/)

The LUYA privacy extension has helpers for privacy management, as needed by certain privacy laws.

- Widget to agree privacy statement.
- Asset File to load resources only when cookies are accepted.
- Trait to attach into your own controllers, blocks etc. in order to trigger whether privacy statements has been accepted or not.

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

[](#installation)

Install the extension through composer:

```
composer require luyadev/luya-privacy:^1.0
```

Usage
-----

[](#usage)

Please take a look at the description in the files for usage and API details:

- [Privacy Asset](https://github.com/luyadev/luya-privacy/blob/master/src/PrivacyAsset.php)
- [Cookie Widget](https://github.com/luyadev/luya-privacy/blob/master/src/widgets/PrivacyWidget.php)
- [Privacy Trait](https://github.com/luyadev/luya-privacy/blob/master/src/traits/PrivacyTrait.php)

###  Health Score

33

—

LowBetter than 75% of packages

Maintenance0

Infrequent updates — may be unmaintained

Popularity32

Limited adoption so far

Community16

Small or concentrated contributor base

Maturity69

Established project with proven stability

 Bus Factor1

Top contributor holds 68.8% 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

Every ~155 days

Recently: every ~185 days

Total

10

Last Release

1462d ago

### Community

Maintainers

![](https://www.gravatar.com/avatar/86184bf08843ed8fcc4aedb2fdecd8a9e832e47e89a7166cebfda529c176f5ce?d=identicon)[nadar](/maintainers/nadar)

---

Top Contributors

[![nadar](https://avatars.githubusercontent.com/u/3417221?v=4)](https://github.com/nadar "nadar (33 commits)")[![dependabot[bot]](https://avatars.githubusercontent.com/in/29110?v=4)](https://github.com/dependabot[bot] "dependabot[bot] (5 commits)")[![JohnnyMcWeed](https://avatars.githubusercontent.com/u/9844452?v=4)](https://github.com/JohnnyMcWeed "JohnnyMcWeed (4 commits)")[![mhunesi](https://avatars.githubusercontent.com/u/15876915?v=4)](https://github.com/mhunesi "mhunesi (2 commits)")[![vavepl](https://avatars.githubusercontent.com/u/7990096?v=4)](https://github.com/vavepl "vavepl (2 commits)")[![boehsermoe](https://avatars.githubusercontent.com/u/2466744?v=4)](https://github.com/boehsermoe "boehsermoe (1 commits)")[![hbugdoll](https://avatars.githubusercontent.com/u/6715827?v=4)](https://github.com/hbugdoll "hbugdoll (1 commits)")

---

Tags

hacktoberfestluyaprivacyphpyii2extensioncookiewidgetyiiluyaprivacygpdr

### Embed Badge

![Health badge](/badges/luyadev-luya-privacy/health.svg)

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

###  Alternatives

[romka-chev/yii2-swiper

Yii2 extension for Swiper slider

1840.6k](/packages/romka-chev-yii2-swiper)

PHPackages © 2026

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