PHPackages                             pistol88/yii2-service - 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. pistol88/yii2-service

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

pistol88/yii2-service
=====================

Управление услугами и ценами этих услуг

31533PHP

Since Aug 22Pushed 8y ago4 watchersCompare

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

READMEChangelogDependenciesVersions (1)Used By (0)

Yii2-service
============

[](#yii2-service)

В состав входит возможность управлять (CRUD):

- Категории потребителей
- Услуги
- Цены за услуги для каждой категории потребителей
- Калькуляция оплаты работникам, основные отчеты

Также в моделу присутствует интерфейс заказа услуги для офлайн работы администратора предприятия.

[![Автомойка](https://cloud.githubusercontent.com/assets/8104605/17052406/c0426774-5016-11e6-81af-75c8865a0639.png)](https://cloud.githubusercontent.com/assets/8104605/17052406/c0426774-5016-11e6-81af-75c8865a0639.png)

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

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

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

```
php composer require pistol88/yii2-service "*"

```

Или добавить в composer.json

```
"pistol88/yii2-service": "*",

```

И выполнить

```
php composer update

```

Далее, мигрируем базу:

```
php yii migrate --migrationPath=vendor/pistol88/yii2-service/migrations

```

Модуль зависит от многих других модулей (смотрите composer.json). Не забудьте выполнить миграции каждого после устоновки.

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

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

В секцию modules конфига добавить:

```
    'modules' => [
        //..
        'service' => [
            'class' => 'pistol88\service\Module',
            'adminRoles' => ['administrator'],
            //Процент выручки, который делится между сотрудниками
            'workerPersent' => 30,
            //Массив сотрудников, которые занимаются реализацией услуг
            'workers' => function() {
                return \common\models\User::findAll(['status' => 2, 'id' => Yii::$app->authManager->getUserIdsByRole(['washer'])]);
            },
            'currency' => 'руб.', //
            'mainIdent' => 'Номер и марка автомобиля', //Наименование основного идентификатора услуги
            'mainIdentFieldSelector' => '#fieldvalue-value-2', //Селектор поля, куда будет вставляться mainIdent после ввода
        ],
        //..
    ]

```

Использование
-------------

[](#использование)

- ?r=service/index

Виджеты
-------

[](#виджеты)

Виджеты в разработке.

###  Health Score

24

—

LowBetter than 31% of packages

Maintenance20

Infrequent updates — may be unmaintained

Popularity16

Limited adoption so far

Community15

Small or concentrated contributor base

Maturity41

Maturing project, gaining track record

 Bus Factor1

Top contributor holds 82.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.

### Community

Maintainers

![](https://avatars.githubusercontent.com/u/8104605?v=4)[pistol88](/maintainers/pistol88)[@pistol88](https://github.com/pistol88)

---

Top Contributors

[![pistol88](https://avatars.githubusercontent.com/u/8104605?v=4)](https://github.com/pistol88 "pistol88 (163 commits)")[![halumein](https://avatars.githubusercontent.com/u/5361342?v=4)](https://github.com/halumein "halumein (27 commits)")[![usesgraphcrt](https://avatars.githubusercontent.com/u/17561572?v=4)](https://github.com/usesgraphcrt "usesgraphcrt (7 commits)")[![AlChilyakov](https://avatars.githubusercontent.com/u/18215959?v=4)](https://github.com/AlChilyakov "AlChilyakov (1 commits)")

### Embed Badge

![Health badge](/badges/pistol88-yii2-service/health.svg)

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

###  Alternatives

[apsconnect/connect-sdk

APS Connect QuickStart SDK

1513.8k2](/packages/apsconnect-connect-sdk)

PHPackages © 2026

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