PHPackages                             professionalweb/rusguard-yii2 - 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. [HTTP &amp; Networking](/categories/http)
4. /
5. professionalweb/rusguard-yii2

AbandonedArchivedYii2-extension[HTTP &amp; Networking](/categories/http)

professionalweb/rusguard-yii2
=============================

Commponent for communication with RusGuard

0.3.4(10y ago)291MITPHP

Since Oct 12Pushed 10y ago1 watchersCompare

[ Source](https://github.com/SergioMadness/RusGuardYii2)[ Packagist](https://packagist.org/packages/professionalweb/rusguard-yii2)[ RSS](/packages/professionalweb-rusguard-yii2/feed)WikiDiscussions master Synced 3w ago

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

RusGuard-Yii2
=============

[](#rusguard-yii2)

[Yii2](http://www.yiiframework.com/) component for communication with [RusGuard](http://www.rgsec.ru/)

Composer
--------

[](#composer)

RusGuard-Yii2 is available through [composer](https://getcomposer.org/)

```
composer require professionalweb/rusguard-yii2 "*"

```

Alternatively you can add the following to the `require` section in your `composer.json` manually:

```
"professionalweb/rusguard-yii2": "*"
```

Run `composer update` afterwards.

### In your PHP project

[](#in-your-php-project)

### Config

[](#config)

```
return [
    'components' => [
        'skud' => [
            'class' => 'professionalweb\rusguard\Skud',
            'url' => 'http://skud/LNetworkServer/LNetworkService.svc?singleWsdl',
            'login' => 'admin',
            'password' => ''
        ],
    ]
];
```

### Show events

[](#show-events)

```
$dataProvider = new \professionalweb\rusguard\DataProvider([
    'component' => Yii::$app->skud,
    'from' => date('c', strtotime($date.' 00:00:00')),
    'to' => date('c', strtotime($date.' 23:59:59')),
    'inout' => $inout
]);
return $this->render('index',
        [
        'dataProvider' => $dataProvider
]);
```

### Add person to SKUD

[](#add-person-to-skud)

```
$personInfo = Yii::$app->skud->addEmployee('75f918bf-24fc-445f-8ff5-8fd11e1ad361', 'John', 'Johnov');
Yii::$app->skud->assignKey($personInfo->ID, '9874566321154');
```

### Set key is lost

[](#set-key-is-lost)

```
Yii::$app->skud->setKeyIsLost('9874566321154', $personInfo->ID);
```

### Get groups

[](#get-groups)

```
Yii::$app->skud->getGroups();
```

### Get person by key

[](#get-person-by-key)

```
Yii::$app->skud->getEmployeeIdByKey('9874566321154');
```

### Remove employee

[](#remove-employee)

```
Yii::$app->skud->removeEmployee($personInfo->ID);
```

### Remove employee by key number

[](#remove-employee-by-key-number)

```
Yii::$app->skud->removeEmployeeByCardNumber('9874566321154');
```

### Get variable

[](#get-variable)

```
Yii::$app->skud->getVariable($name);
```

### Add employee's photo

[](#add-employees-photo)

```
Yii::$app->skud->addEmployeePhoto($personInfo->ID, null, $base64Data);
```

### Get employee info

[](#get-employee-info)

```
```php

```

$skud-&amp;gt;getEmployee($$personInfo-&gt;ID)

```

### Get events
```php
Yii::$app->skud->getEvents($fromDate = null, $toDate = null, $inoutEventType = null, $page = 1, $pageSize = 20)

```

### Listen for notifications

[](#listen-for-notifications)

```
$result = Yii::$app->skud->getNotification();
```

The MIT License
---------------

[](#the-mit-license)

The MIT License (MIT)

Copyright (c) 2016 Sergey Zinchenko, [Professional web](http://web-development.pw/)

Permission is hereby granted, free of charge, to any person obtaining a copy of this software and associated documentation files (the "Software"), to deal in the Software without restriction, including without limitation the rights to use, copy, modify, merge, publish, distribute, sublicense, and/or sell copies of the Software, and to permit persons to whom the Software is furnished to do so, subject to the following conditions:

The above copyright notice and this permission notice shall be included in all copies or substantial portions of the Software.

THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE.

###  Health Score

26

—

LowBetter than 41% of packages

Maintenance20

Infrequent updates — may be unmaintained

Popularity8

Limited adoption so far

Community5

Small or concentrated contributor base

Maturity58

Maturing project, gaining track record

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 ~29 days

Total

6

Last Release

3765d ago

### Community

Maintainers

![](https://www.gravatar.com/avatar/1365ec6405d0ae656f92345bbe388afc34a12a19c3ab0c9ff909b5d4ea3d83a0?d=identicon)[SergioMadness](/maintainers/SergioMadness)

---

Tags

yii2professional webweb-developmentRusGuardrgsec

### Embed Badge

![Health badge](/badges/professionalweb-rusguard-yii2/health.svg)

```
[![Health](https://phpackages.com/badges/professionalweb-rusguard-yii2/health.svg)](https://phpackages.com/packages/professionalweb-rusguard-yii2)
```

###  Alternatives

[craftcms/cms

Craft CMS

3.6k3.6M2.9k](/packages/craftcms-cms)[linslin/yii2-curl

Easy and nice cURL extension with RESTful support for Yii2

1741.5M20](/packages/linslin-yii2-curl)[zhuravljov/yii2-rest

Yii2 REST Client

1186.2k](/packages/zhuravljov-yii2-rest)[tunecino/yii2-nested-rest

Adds nested resources routing support along with related actions and relationship handlers to the Yii RESTful API framework

4716.0k](/packages/tunecino-yii2-nested-rest)

PHPackages © 2026

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