PHPackages                             alexantr/hootkigrosh - 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. [API Development](/categories/api)
4. /
5. alexantr/hootkigrosh

AbandonedArchivedLibrary[API Development](/categories/api)

alexantr/hootkigrosh
====================

Working with Hutki Grosh API (www.hutkigrosh.by)

v1.1(9y ago)35.6k↑76%1MITPHPPHP &gt;=5.3.3

Since Jan 23Pushed 8y ago1 watchersCompare

[ Source](https://github.com/alexantr/HootkiGrosh)[ Packagist](https://packagist.org/packages/alexantr/hootkigrosh)[ Docs](https://github.com/alexantr/HootkiGrosh)[ RSS](/packages/alexantr-hootkigrosh/feed)WikiDiscussions master Synced 2w ago

READMEChangelog (2)DependenciesVersions (3)Used By (0)

HootkiGrosh
===========

[](#hootkigrosh)

Класс для работы с API сервиса «[Хуткі Грош](https://www.hutkigrosh.by/)»

[Описание API](https://www.hutkigrosh.by/wp-content/uploads/2017/03/API-servisa-Hutki-Grosh.ru_.pdf)

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

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

Установка через [Composer](http://getcomposer.org/):

```
composer require alexantr/hootkigrosh "~1.0"

```

Пример использования
--------------------

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

Инициализация:

```
require 'HootkiGrosh.php';

$user = 'user@org.com'; // имя пользователя
$pwd = 'paSSwo_rd'; // пароль
$is_test = true; // тестовый api

$hg = new \Alexantr\HootkiGrosh\HootkiGrosh($is_test);
```

Авторизация:

```
$res = $hg->apiLogIn($user, $pwd);

// Ошибка авторизации
if (!$res) {
    echo $hg->getError();
    $hg->apiLogOut(); // Завершаем сеанс
    exit;
}
```

Добавление нового счета в систему:

```
$data = array(
    'eripId' => '40000001',
    'invId' => 'C-1234',
    'fullName' => 'Пупкин Василий Иванович',
    'mobilePhone' => '+333 33 3332221',
    'email' => 'pupkin@org.com',
    'fullAddress' => 'г.Минск, пр.Победителей, д.1, кв.1',
    'amt' => 120000,
    'products' => array(
        array(
            'invItemId' => 'Артикул 123',
            'desc' => 'Услуга, за которую производят оплату',
            'count' => 1,
            'amt' => 119000,
        ),
        array(
            'invItemId' => '-нет-',
            'desc' => 'Доставка',
            'count' => 1,
            'amt' => 1000,
        ),
    ),
);

$billID = $hg->apiBillNew($data);
if (!$billID) {
    echo $hg->getError();
    $hg->apiLogOut(); // Завершаем сеанс
    exit;
}
echo 'bill ID: ' . $billID . '';
```

Статус счета:

```
$status = $hg->apiBillStatus($billID);
if (!$status) {
    echo $hg->getError();
    $hg->apiLogOut(); // Завершаем сеанс
    exit;
}
echo 'Статус: ' . $status . ' (' . $hg->getPurchItemStatus($status) . ')';
```

Информация о счете:

```
$info = $hg->apiBillInfo($billID);
if (!$info) {
    echo $hg->getError();
    $hg->apiLogOut(); // Завершаем сеанс
    exit;
}
echo '' . print_r($info, true) . '';
```

Удаление счета:

```
$res = $hg->apiBillDelete($billID);
if (!$res) {
    echo $hg->getError();
    $hg->apiLogOut(); // Завершаем сеанс
    exit;
}
```

Список последних платежей:

```
$info = $hg->apiPayedBills($eripID, $lastBillID);
if (!$info) {
    echo $hg->getError();
    $hg->apiLogOut(); // Завершаем сеанс
    exit;
}
echo '' . print_r($info, true) . '';
```

Дамп ответа:

```
$response = $hg->getResponse();
echo '' . htmlspecialchars($response) . '';
```

Завершение сеанса:

```
$res = $hg->apiLogOut();
```

###  Health Score

33

—

LowBetter than 72% of packages

Maintenance20

Infrequent updates — may be unmaintained

Popularity28

Limited adoption so far

Community10

Small or concentrated contributor base

Maturity59

Maturing project, gaining track record

 Bus Factor1

Top contributor holds 95% 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 ~451 days

Total

2

Last Release

3408d ago

### Community

Maintainers

![](https://www.gravatar.com/avatar/f4fc7a0e276b70bd6482650cd0cbf5fb098035b885679f469ab91b613133589b?d=identicon)[alexantr](/maintainers/alexantr)

---

Top Contributors

[![alexantr](https://avatars.githubusercontent.com/u/4941848?v=4)](https://github.com/alexantr "alexantr (19 commits)")[![vetheslav](https://avatars.githubusercontent.com/u/17473642?v=4)](https://github.com/vetheslav "vetheslav (1 commits)")

---

Tags

apipaymentapipaymentshootkigroshhutkigrosh

### Embed Badge

![Health badge](/badges/alexantr-hootkigrosh/health.svg)

```
[![Health](https://phpackages.com/badges/alexantr-hootkigrosh/health.svg)](https://phpackages.com/packages/alexantr-hootkigrosh)
```

###  Alternatives

[mollie/mollie-api-php

Mollie API client library for PHP. Mollie is a European Payment Service provider and offers international payment methods such as Mastercard, VISA, American Express and PayPal, and local payment methods such as iDEAL, Bancontact, SOFORT Banking, SEPA direct debit, Belfius Direct Net, KBC Payment Button and various gift cards such as Podiumcadeaukaart and fashioncheque.

60316.6M98](/packages/mollie-mollie-api-php)[transbank/transbank-sdk

Transbank SDK

62698.1k15](/packages/transbank-transbank-sdk)[openbuildings/paypal

PayPal SDK for ExpressCheckout and AdaptivePayments. Supports recurring payments, simple payments, parallel payments and chained payments.

31176.5k](/packages/openbuildings-paypal)[maksekeskus/maksekeskus-php

Maksekeskus PHP SDK

13208.2k](/packages/maksekeskus-maksekeskus-php)

PHPackages © 2026

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