PHPackages                             restruct/silverstripe-cookiebar - 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. restruct/silverstripe-cookiebar

ActiveSilverstripe-vendormodule

restruct/silverstripe-cookiebar
===============================

Drop-in configurable notice about cookies

3.0.1(6mo ago)0544↓100%MITPHP

Since Mar 21Pushed 3mo ago4 watchersCompare

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

READMEChangelogDependencies (1)Versions (16)Used By (0)

Cookiebar Module
================

[](#cookiebar-module)

Configurable notice about cookies, a link to a page about them and an 'accept' link to close the notice (based on the cookiebar module by Aram Balakjian &amp; Steve Heyes).

[![Screenshot 2022-07-02 at 14 13 29](https://user-images.githubusercontent.com/1005986/177000331-e8613a6f-8ce9-4920-a8fe-e012c78ac50b.png)](https://user-images.githubusercontent.com/1005986/177000331-e8613a6f-8ce9-4920-a8fe-e012c78ac50b.png)

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

[](#installation)

Install via `composer require` and add $CookieBar just before the closing body tag:

```
...
    $CookieBar

```

The included template uses bootstrap for its layout. In case the site theme does not use bootstrap, a 'sans-bs' CSS file can be included which provides a fallback layout (see config).

Configuration
-------------

[](#configuration)

The texts and image can be controlled from the CMS (SiteConfig).
Config options (with their defaults):

```
Restruct\CookieBar\Controls\CookieBarController:
  sans_bs_css: false # include no-bootstrap version CSS
  cookie_name: 'cookie_consent' # name of cookie with timestamp of consent
  cookie_age: 365 # cookie expiration in days
  cookie_refresh: true # refresh consent cookie upon each request
```

Prefab CSS inclusion can be blocked altogether from `_config.php`:

```
Requirements::block('restruct/silverstripe-cookiebar:client/dist/css/cookiebar.css');
```

###  Health Score

43

—

FairBetter than 91% of packages

Maintenance75

Regular maintenance activity

Popularity15

Limited adoption so far

Community12

Small or concentrated contributor base

Maturity60

Established project with proven stability

 Bus Factor2

2 contributors hold 50%+ of commits

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 ~126 days

Recently: every ~33 days

Total

15

Last Release

102d ago

Major Versions

2.2.4 → 3.0.02025-10-22

### Community

Maintainers

![](https://www.gravatar.com/avatar/4d3680d6353e5f171543435b89965ba2588186ad7ec0ec97cbf572704fec2a4f?d=identicon)[micschk](/maintainers/micschk)

---

Top Contributors

[![patjnr](https://avatars.githubusercontent.com/u/435055?v=4)](https://github.com/patjnr "patjnr (17 commits)")[![micschk](https://avatars.githubusercontent.com/u/1005986?v=4)](https://github.com/micschk "micschk (13 commits)")[![hubertusanton](https://avatars.githubusercontent.com/u/582188?v=4)](https://github.com/hubertusanton "hubertusanton (6 commits)")

---

Tags

silverstripecookies

### Embed Badge

![Health badge](/badges/restruct-silverstripe-cookiebar/health.svg)

```
[![Health](https://phpackages.com/badges/restruct-silverstripe-cookiebar/health.svg)](https://phpackages.com/packages/restruct-silverstripe-cookiebar)
```

###  Alternatives

[silverstripe/cms

The SilverStripe Content Management System

5163.4M1.3k](/packages/silverstripe-cms)[silverstripe/admin

SilverStripe admin interface

262.6M325](/packages/silverstripe-admin)[silverstripe/silverstripe-omnipay

SilverStripe Omnipay Payment Module

38106.0k15](/packages/silverstripe-silverstripe-omnipay)[silverleague/ideannotator

Generate PHP DocBlock annotations for DataObject and DataExtension databasefields and relation methods

4768.0k43](/packages/silverleague-ideannotator)

PHPackages © 2026

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