PHPackages                             carono/yii2-request-checksum - 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. [Validation &amp; Sanitization](/categories/validation)
4. /
5. carono/yii2-request-checksum

ActiveLibrary[Validation &amp; Sanitization](/categories/validation)

carono/yii2-request-checksum
============================

Checksum request for forms

0.2.2(7y ago)1291MITPHP

Since Feb 6Pushed 7y ago1 watchersCompare

[ Source](https://github.com/carono/yii2-request-checksum)[ Packagist](https://packagist.org/packages/carono/yii2-request-checksum)[ RSS](/packages/carono-yii2-request-checksum/feed)WikiDiscussions master Synced 2d ago

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

[![Scrutinizer Code Quality](https://camo.githubusercontent.com/4441087c57575a982ef8c3dca9a24355541298958a3d6fdd436ed289b573c956/68747470733a2f2f7363727574696e697a65722d63692e636f6d2f672f6361726f6e6f2f796969322d726571756573742d636865636b73756d2f6261646765732f7175616c6974792d73636f72652e706e673f623d6d6173746572)](https://scrutinizer-ci.com/g/carono/yii2-request-checksum/?branch=master)[![Latest Stable Version](https://camo.githubusercontent.com/fedbe3d30ef35310f4c925ed1754fe24844800fe74ef34ee4230437f0aac46af/68747470733a2f2f706f7365722e707567782e6f72672f6361726f6e6f2f796969322d726571756573742d636865636b73756d2f762f737461626c65)](https://packagist.org/packages/carono/yii2-request-checksum)[![Total Downloads](https://camo.githubusercontent.com/234c7c0b4212a286385e42437b7f6fa0bdc03d4e3a9ff6462f7c5ff05dff5ebe/68747470733a2f2f706f7365722e707567782e6f72672f6361726f6e6f2f796969322d726571756573742d636865636b73756d2f646f776e6c6f616473)](https://packagist.org/packages/carono/yii2-request-checksum)[![License](https://camo.githubusercontent.com/2bf999cb166d73a8adc4e2c491a21216c3a7deb09df0cd58d9f9012da98ea088/68747470733a2f2f706f7365722e707567782e6f72672f6361726f6e6f2f796969322d726571756573742d636865636b73756d2f6c6963656e7365)](https://packagist.org/packages/carono/yii2-request-checksum)

Описание
========

[](#описание)

Защита форм от подделки от клиента. При несовпадении отправленной формы от пользователя с той, что была сформирована сервером, произойдет ошибка 400

Пользователь может подделать форму, зная имя атрибутов модели, если они помечены как safe и не проверяются дополнительно [![](https://camo.githubusercontent.com/71b1dbf01a0c5dd703db31feefdb43220032183cf05467f8aa99313b243a677d/687474703a2f2f672e7265636f726469742e636f2f326143566d654637634c2e676966)](https://camo.githubusercontent.com/71b1dbf01a0c5dd703db31feefdb43220032183cf05467f8aa99313b243a677d/687474703a2f2f672e7265636f726469742e636f2f326143566d654637634c2e676966)

Если подключить новый request в компонентах, то при рендеринге HTML, все поля будут сохраняться и при получении данных от пользователя будут сверяться, а при несовпадении, будет выброшена ошибка. [![](https://camo.githubusercontent.com/38356533d47c6f7712e5fecc0b230f87feca01d1658799fa2f4bb1a4b96ec666/687474703a2f2f672e7265636f726469742e636f2f454243546e68587447492e676966)](https://camo.githubusercontent.com/38356533d47c6f7712e5fecc0b230f87feca01d1658799fa2f4bb1a4b96ec666/687474703a2f2f672e7265636f726469742e636f2f454243546e68587447492e676966)

Установка
=========

[](#установка)

`composer require carono/yii2-request-checksum`

Настройка
=========

[](#настройка)

В конфиге добавляем класс запроса

```
'components' => [
    'request' => [
        'class' => \carono\checksum\Request::class,
        'checksumKey' => 'secret key'
    ],
]

```

###  Health Score

26

—

LowBetter than 41% of packages

Maintenance20

Infrequent updates — may be unmaintained

Popularity10

Limited adoption so far

Community8

Small or concentrated contributor base

Maturity57

Maturing project, gaining track record

 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.

###  Release Activity

Cadence

Every ~64 days

Total

5

Last Release

2809d ago

### Community

Maintainers

![](https://avatars.githubusercontent.com/u/6193985?v=4)[Александр Касьянов](/maintainers/carono)[@carono](https://github.com/carono)

---

Top Contributors

[![carono](https://avatars.githubusercontent.com/u/6193985?v=4)](https://github.com/carono "carono (29 commits)")

### Embed Badge

![Health badge](/badges/carono-yii2-request-checksum/health.svg)

```
[![Health](https://phpackages.com/badges/carono-yii2-request-checksum/health.svg)](https://phpackages.com/packages/carono-yii2-request-checksum)
```

###  Alternatives

[craftcms/cms

Craft CMS

3.6k3.6M2.9k](/packages/craftcms-cms)[borales/yii2-phone-input

Yii2 International telephone numbers - Asset Bundle, Behavior, Validator, Widget

1331.7M6](/packages/borales-yii2-phone-input)[codeonyii/yii2-at-least-validator

Validates at least one (or more) attributes.

28260.2k1](/packages/codeonyii-yii2-at-least-validator)[arogachev/yii2-many-to-many

Many-to-many ActiveRecord relation for Yii 2 framework

3542.5k4](/packages/arogachev-yii2-many-to-many)[yiibr/yii2-br-validator

Provide validations and features for brazilian localization

14105.8k4](/packages/yiibr-yii2-br-validator)

PHPackages © 2026

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