PHPackages                             black-lamp/yii2-legal-agreement - 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. black-lamp/yii2-legal-agreement

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

black-lamp/yii2-legal-agreement
===============================

Module for adding the legal agreements across dashboard

1.0.5(9y ago)0133GNU Public LicensePHP

Since Oct 3Pushed 9y ago5 watchersCompare

[ Source](https://github.com/black-lamp/yii2-legal-agreement)[ Packagist](https://packagist.org/packages/black-lamp/yii2-legal-agreement)[ RSS](/packages/black-lamp-yii2-legal-agreement/feed)WikiDiscussions master Synced today

READMEChangelog (7)Dependencies (4)Versions (8)Used By (0)

Legal agreement module for Yii2
===============================

[](#legal-agreement-module-for-yii2)

Module for adding the legal agreements across dashboard

[![Latest Stable Version](https://camo.githubusercontent.com/b3bcbefd6b6af7dd1b3dd9c697eda54937a3b3d21f5d42c626d468f0d05432a7/68747470733a2f2f706f7365722e707567782e6f72672f626c61636b2d6c616d702f796969322d6c6567616c2d61677265656d656e742f762f737461626c65)](https://packagist.org/packages/black-lamp/yii2-legal-agreement)[![Latest Unstable Version](https://camo.githubusercontent.com/b2b11727e0e7bc4c4b2b54321355776cd86995737d45a24d929e1f86d5bd3a3d/68747470733a2f2f706f7365722e707567782e6f72672f626c61636b2d6c616d702f796969322d6c6567616c2d61677265656d656e742f762f756e737461626c65)](https://packagist.org/packages/black-lamp/yii2-legal-agreement)[![License](https://camo.githubusercontent.com/b4dac1e6e3ac5ae4d44a0451bb48314b3c966cde68fc4b79e38db868255ff7d4/68747470733a2f2f706f7365722e707567782e6f72672f626c61636b2d6c616d702f796969322d6c6567616c2d61677265656d656e742f6c6963656e7365)](https://packagist.org/packages/black-lamp/yii2-legal-agreement)

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

[](#installation)

#### Run command

[](#run-command)

```
composer require black-lamp/yii2-legal-agreement

```

or add

```
"black-lamp/yii2-legal-agreement": "1.*.*"
```

to the require section of your composer.json.

#### Applying migrations

[](#applying-migrations)

```
yii migrate --migrationPath=@vendor/black-lamp/yii2-legal-agreement/common/migrations

```

#### Add modules to application config

[](#add-modules-to-application-config)

Frontend module for displaying and accepting the agreement

```
'modules' => [
     // ...
     'legal' => [
         'class' => bl\legalAgreement\frontend\LegalModule::className(),
     ],
]
```

Backend module for work with the agreements

```
'modules' => [
     // ...
     'legal' => [
         'class' => bl\legalAgreement\backend\LegalModule::className(),
         'languageProvider' => [
               'class' => bl\legalAgreement\backend\providers\DbLanguageProvider::className(),
               'arModel' => \bl\multilang\entities\Language::className(),
               'idField' => 'id',
               'nameField' => 'name'
         ]
     ],
]
```

#### Add component to application config

[](#add-component-to-application-config)

Component for work with agreements and users

```
'components' =>
[
    // ...
    'legal' => [
        'class' => bl\legalAgreement\common\components\LegalAgreement::className()
    ],
]
```

###  Health Score

30

—

LowBetter than 62% of packages

Maintenance20

Infrequent updates — may be unmaintained

Popularity10

Limited adoption so far

Community11

Small or concentrated contributor base

Maturity68

Established project with proven stability

 Bus Factor1

Top contributor holds 91.7% 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 ~35 days

Recently: every ~53 days

Total

7

Last Release

3347d ago

### Community

Maintainers

![](https://www.gravatar.com/avatar/0e1784ec992318bf7ed40a2025a0ca035a01143de89054f0f4c9bc39469928c1?d=identicon)[GutsVadim](/maintainers/GutsVadim)

---

Top Contributors

[![greeflas](https://avatars.githubusercontent.com/u/17636915?v=4)](https://github.com/greeflas "greeflas (22 commits)")[![GutsVadim](https://avatars.githubusercontent.com/u/9513738?v=4)](https://github.com/GutsVadim "GutsVadim (2 commits)")

---

Tags

black-lampphpyii-extensionyii2licenseyii2moduleagreementlegal

### Embed Badge

![Health badge](/badges/black-lamp-yii2-legal-agreement/health.svg)

```
[![Health](https://phpackages.com/badges/black-lamp-yii2-legal-agreement/health.svg)](https://phpackages.com/packages/black-lamp-yii2-legal-agreement)
```

###  Alternatives

[hauntd/yii2-vote

Votes, likes, favorites.

403.2k](/packages/hauntd-yii2-vote)

PHPackages © 2026

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