PHPackages                             mifefr/consent-string-sdk-php - 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. mifefr/consent-string-sdk-php

ActiveLibrary

mifefr/consent-string-sdk-php
=============================

Transparency and Consent Framework: Consent String SDK (PHP)

v1.1.1(7y ago)67.7k1MITPHPPHP &gt;=5.6.0

Since Nov 23Pushed 6y ago3 watchersCompare

[ Source](https://github.com/mifefr/consent-string-sdk-php)[ Packagist](https://packagist.org/packages/mifefr/consent-string-sdk-php)[ RSS](/packages/mifefr-consent-string-sdk-php/feed)WikiDiscussions master Synced today

READMEChangelog (5)Dependencies (2)Versions (6)Used By (0)

Consent-String-SDK-PHP
======================

[](#consent-string-sdk-php)

Transparency and Consent Framework: Consent String SDK (PHP)

Quality
-------

[](#quality)

[![Build Status](https://camo.githubusercontent.com/3d4016d973503a0c870c0284cf4b40a1f62b4a086f7ed67dd4f6be1c48e95a67/68747470733a2f2f6170692e7472617669732d63692e6f72672f6d69666566722f636f6e73656e742d737472696e672d73646b2d7068702e706e673f6272616e63683d6d6173746572)](https://travis-ci.org/mifefr/consent-string-sdk-php)[![codecov](https://camo.githubusercontent.com/8fd00a03eae619db280ff9062c3b105801cfcf0442ce7ed6bd73dd4cae16cd66/68747470733a2f2f636f6465636f762e696f2f67682f6d69666566722f636f6e73656e742d737472696e672d73646b2d7068702f6272616e63682f6d61737465722f67726170682f62616467652e737667)](https://codecov.io/gh/mifefr/consent-string-sdk-php)[![Maintainability](https://camo.githubusercontent.com/d016f09fbb85de1b8ce3d22d9fd3a03067449e47273f5ced120dc5b9a2d8360b/68747470733a2f2f6170692e636f6465636c696d6174652e636f6d2f76312f6261646765732f37323530353333323938356332376134333262322f6d61696e7461696e6162696c697479)](https://codeclimate.com/github/mifefr/Consent-String-SDK-PHP)[![Viewed](https://camo.githubusercontent.com/55ec0a6b5066b519002b84b25c4f1676e7f2eba00dc8772a4b3db6ae81e1ddaf/687474703a2f2f686974732e6477796c2e636f6d2f6d69666566722f636f6e73656e742d737472696e672d73646b2d7068702e737667)](http://hits.dwyl.com/mifefr/consent-string-sdk-php)

Install
-------

[](#install)

Install with composer:

```
composer require mifefr/consent-string-sdk-php

```

Usage
-----

[](#usage)

```
use Mifefr\ConsentString;

$base64IAB = 'BOXhscYOXhscYACABDENAE4AAAAAwQgA';
$consent = new ConsentCookie( $base64IAB );

echo $consent->getConsentLanguage();
// EN

$consent->setConsentLanguage( 'FR' );

echo $consent->toBase64();
// BOXhscYOXhscYACABDFRAE4AAAAAwQgA
```

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

[](#documentation)

Documentation can be found in the the [docs](https://github.com/mifefr/consent-string-sdk-php/tree/master/docs) directory.

License
-------

[](#license)

Released under the MIT License (MIT). See [LICENSE](https://github.com/mifefr/consent-string-sdk-php/blob/master/LICENSE) for more information.

###  Health Score

32

—

LowBetter than 74% of packages

Maintenance20

Infrequent updates — may be unmaintained

Popularity25

Limited adoption so far

Community11

Small or concentrated contributor base

Maturity59

Maturing project, gaining track record

 Bus Factor1

Top contributor holds 54.3% 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 ~10 days

Total

5

Last Release

2635d ago

Major Versions

v0.9.1 → v1.0.02018-12-11

### Community

Maintainers

![](https://www.gravatar.com/avatar/2059a0cf3acf4f934d2aca12286143f5dae364abf4b210b7eb8bd43a3cc12adb?d=identicon)[mifefr](/maintainers/mifefr)

---

Top Contributors

[![mifefr](https://avatars.githubusercontent.com/u/5524955?v=4)](https://github.com/mifefr "mifefr (76 commits)")[![Roffray](https://avatars.githubusercontent.com/u/10237612?v=4)](https://github.com/Roffray "Roffray (64 commits)")

---

Tags

librarycookieconsentrgpdiabgpdr

###  Code Quality

TestsPHPUnit

### Embed Badge

![Health badge](/badges/mifefr-consent-string-sdk-php/health.svg)

```
[![Health](https://phpackages.com/badges/mifefr-consent-string-sdk-php/health.svg)](https://phpackages.com/packages/mifefr-consent-string-sdk-php)
```

###  Alternatives

[statikbe/laravel-cookie-consent

Cookie consent modal for EU

209387.2k](/packages/statikbe-laravel-cookie-consent)[devrabiul/laravel-cookie-consent

A GDPR-compliant cookie consent solution for Laravel applications with fully customizable cookie banners, granular consent control, and enterprise-grade compliance features.

17126.9k1](/packages/devrabiul-laravel-cookie-consent)[oveleon/contao-cookiebar

Contao Cookiebar

63121.0k4](/packages/oveleon-contao-cookiebar)[dirkpersky/typo3-dp_cookieconsent

Enable a cookie consent box. Let you visitors control the usage of cookies and load script or content after a consent. (ePrivacy, TTDSG)

35198.0k1](/packages/dirkpersky-typo3-dp-cookieconsent)[codingfreaks/cf-cookiemanager

Manage cookies, scripts, and GDPR compliance on your Typo3 website with CodingFreaks Typo3 Cookie Manager. Customize cookie banners, streamline workflow, and enhance user experience. Ensure GDPR compliance and take control of cookie management with our Typo3 cookie management extension. Visit the official Typo3 Documentation page to learn more.

1623.9k](/packages/codingfreaks-cf-cookiemanager)[bramdeleeuw/cookieconsent

GDPR compliant cookie bar and consent checker

1511.4k2](/packages/bramdeleeuw-cookieconsent)

PHPackages © 2026

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