PHPackages                             usesgraphcrt/yii2-check-print-module - 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. usesgraphcrt/yii2-check-print-module

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

usesgraphcrt/yii2-check-print-module
====================================

Модуль печати чеков и работы со сменой для ккм

03PHP

Since May 3Pushed 9y ago1 watchersCompare

[ Source](https://github.com/usesgraphcrt/yii2-check-print-module)[ Packagist](https://packagist.org/packages/usesgraphcrt/yii2-check-print-module)[ RSS](/packages/usesgraphcrt-yii2-check-print-module/feed)WikiDiscussions master Synced 2w ago

READMEChangelogDependenciesVersions (1)Used By (0)

yii2-check-print-module
=======================

[](#yii2-check-print-module)

Модуль печати чеков и работы со сменой для ккм

Данный модуль предназначен для работы с ккм на базе драйвера "АТОЛ";

Подключение и настройка
-----------------------

[](#подключение-и-настройка)

Выполнить команду:

```
php composer.phar require --prefer-dist usesgraphcrt/yii2-check-print-module "*"

```

либо добавить в composer.json в секцию require:

```
"usesgraphcrt/yii2-check-print-module": "*"

```

Для начала работы с модулем добавить в конфиг в секцию модулей:

```
'modules' => [
        ...
        'checkprint' => [
            'class' => \usesgraphcrt\checkPrint\Module::className(),
            'orderModel' => 'namespace модели заказов',
            'orderElementModel' => 'namespace модели элементов заказа',
            'adminRoles' => [//роли, которые имеют доступ к печати],
            'organizationInn' => 'some Inn', //ИНН организации (используется для печати на чеке)
            'organizationAddress' => 'address', //так же используется для печати на чеке
            'examCheckSite' => 'siteUrl', //адрес сайта, на котором можно проверить достоверность чека
        ],
    ],
```

Для того, чтобы работала печать чека, необходимо зарегестрировать AssetBundle модуля в Вашем layout'e добавив строку:

```
usesgraphcrt\checkprint\PrintAsset::register($this);
```

AssetBundle
-----------

[](#assetbundle)

event-handler.js слушает два события: successOrderCreate - печать чека после успешного создания заказа. Для корректной работы необходимо создать триггер для этого события.

```
$(document).on('successOrderCreate', function() {
        ...
});
```

Для работы со сменой ккм (открытие/закрытие) используется событие click по элементу с data-role=main-session, а разделение на открытие/закрытие реализовано с помощью класса worksess-stop / worksess-start:

```
$(document).on('click','[data-role=main-session]', function() {
    var self = $(this),
        host = window.location.hostname;
    if (self.hasClass('worksess-stop')) {
        ...
    } else {
       ...
    }
});
```

###  Health Score

19

—

LowBetter than 9% of packages

Maintenance20

Infrequent updates — may be unmaintained

Popularity3

Limited adoption so far

Community7

Small or concentrated contributor base

Maturity41

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.

### Community

Maintainers

![](https://www.gravatar.com/avatar/5004c9f0c697466c43ffc97ba8eebccf6c9332e67f64323fe5e12576aea23222?d=identicon)[usesgraphcrt](/maintainers/usesgraphcrt)

---

Top Contributors

[![usesgraphcrt](https://avatars.githubusercontent.com/u/17561572?v=4)](https://github.com/usesgraphcrt "usesgraphcrt (14 commits)")

### Embed Badge

![Health badge](/badges/usesgraphcrt-yii2-check-print-module/health.svg)

```
[![Health](https://phpackages.com/badges/usesgraphcrt-yii2-check-print-module/health.svg)](https://phpackages.com/packages/usesgraphcrt-yii2-check-print-module)
```

###  Alternatives

[cartalyst/collections

Collection Abstaction library for PHP.

77914.7k5](/packages/cartalyst-collections)[verbb/events

A full-featured plugin for event management and ticketing.

2311.8k](/packages/verbb-events)

PHPackages © 2026

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