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. [Authentication &amp; Authorization](/categories/authentication)
4. /
5. mifefr/consent-string-sdk-php

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

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 3w ago

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 69% of packages

Maintenance20

Infrequent updates — may be unmaintained

Popularity26

Limited adoption so far

Community11

Small or concentrated contributor base

Maturity60

Established project with proven stability

 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

2730d 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

[litesaml/lightsaml

SAML 2.0 PHP library

1066.0M19](/packages/litesaml-lightsaml)[2amigos/2fa-library

2 Factor Authentication (2FA) library

34386.3k7](/packages/2amigos-2fa-library)[spinen/laravel-discourse-sso

Integrate Discourse SSO into Laravel.

4699.0k](/packages/spinen-laravel-discourse-sso)[xety/cake3-cookieauth

A simple Cake3 plugin to authenticate users with Cookies.

1856.1k2](/packages/xety-cake3-cookieauth)

PHPackages © 2026

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