PHPackages                             pzavoli71/cookieconsent - 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. pzavoli71/cookieconsent

ActiveYii2-extension

pzavoli71/cookieconsent
=======================

Cookie consent for Yii Framework 2.0

019PHP

Since Jul 5Pushed 1y ago1 watchersCompare

[ Source](https://github.com/pzavoli71/cookieconsent)[ Packagist](https://packagist.org/packages/pzavoli71/cookieconsent)[ RSS](/packages/pzavoli71-cookieconsent/feed)WikiDiscussions master Synced 1mo ago

READMEChangelogDependenciesVersions (1)Used By (0)

 pzavoli71 Cookie Consent ---

===============================

[](#----pzavoli71-cookie-consent----)

Per consentire il funzionamento di questo widget è necessario predisporre una voce nell'area modules del main.php all'interno dello spazio "frontend". La voce deve essere del tipo:
 `'modules' => [       'cookieconsent' => [            'class' => '\pzavoli71\cookieconsent\Module',                        'TextConsent' => [                    'Testo' => "Journey site and Partners (“We”) use cookies, to operate our website, to show you personalized content and manage our objectives as a business. You can find out more about how we use cookies below.You can allow all cookies, select them individually or decline them all.",                        ],            'LinkPolicy' => '/cookiepolicy.html',           'Analytics' => true,           'Advertising' => false,           'Personalization' => false,        ]            ],`La voce **Linkpolicy** deve puntare alla pagina con il contenuto delle privacy policy. Le voci **Analytics**, **Advertising**, **Personalization** devono essere configurate per far comparire il relativo checkbox nella pagina di scelta dei cookies. Il campo **TextConsent** è il contenuto di testo che compare all'utente quando visualizza la maschera dei cookies.

Nel layout delle pagine visualizzate deve essere impostato il comando per rendere visibile o invisibile il dialog con la scelta dei cookies:
``

Nel css dell'applicativo inserire la seguente regola:
`.cookieconsent {position: fixed;left: 10px;bottom: 10px;min-width: 100px;border: 1px solid #b7b7b7;background-color: aliceblue;padding: 9px;border-radius: 40px;text-align: center;display: block;}.cookieconsent:hover {background-color:#DDDDDD;transition: all 0.2s ease 0s;}`

La tabella dove verranno salvate le impostazioni dell'utente deve avere il seguente formato:
`CREATE TABLE `cookieconsent` (`idcookie` int NOT NULL AUTO_INCREMENT,`IP` varchar(40) NOT NULL,`uuid` varchar(60) DEFAULT NULL,`stringa` varchar(500) DEFAULT NULL,`ultagg` datetime DEFAULT CURRENT_TIMESTAMP,`utente` varchar(45) DEFAULT NULL,PRIMARY KEY (`idcookie`)) ENGINE=InnoDB AUTO_INCREMENT=14 DEFAULT CHARSET=utf8mb4 COLLATE=utf8mb4_0900_ai_ci;`

**pzavoli71-cookieconsent** is released under the BSD 3-Clause License. See the bundled `LICENSE.md` for details.

###  Health Score

15

—

LowBetter than 3% of packages

Maintenance28

Infrequent updates — may be unmaintained

Popularity7

Limited adoption so far

Community7

Small or concentrated contributor base

Maturity17

Early-stage or recently created project

 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.

### Community

Maintainers

![](https://www.gravatar.com/avatar/41ba4d1700c6d7db06c97e189d8a25d2983cec9cab0df48a946fb73b004ae552?d=identicon)[pzavoli](/maintainers/pzavoli)

---

Top Contributors

[![pzavoli71](https://avatars.githubusercontent.com/u/61480658?v=4)](https://github.com/pzavoli71 "pzavoli71 (27 commits)")

### Embed Badge

![Health badge](/badges/pzavoli71-cookieconsent/health.svg)

```
[![Health](https://phpackages.com/badges/pzavoli71-cookieconsent/health.svg)](https://phpackages.com/packages/pzavoli71-cookieconsent)
```

PHPackages © 2026

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