PHPackages                             domatskiy/bitrix-ajax-response - 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. domatskiy/bitrix-ajax-response

ActiveLibrary[Utility &amp; Helpers](/categories/utility)

domatskiy/bitrix-ajax-response
==============================

v1.4.0(8y ago)1391MITPHPPHP &gt;=5.6.4

Since Oct 28Pushed 8y ago1 watchersCompare

[ Source](https://github.com/domatskiy/bitrix-ajax-response)[ Packagist](https://packagist.org/packages/domatskiy/bitrix-ajax-response)[ Docs](http://domatskiy.ru)[ RSS](/packages/domatskiy-bitrix-ajax-response/feed)WikiDiscussions master Synced 2w ago

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

bitrix-ajax-response
====================

[](#bitrix-ajax-response)

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

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

```
composer require domatskiy/bitrix-ajax-response

```

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

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

```
    new AjaxResponse(function(){

        ...

        });
```

использование метода класса
---------------------------

[](#использование-метода-класса)

```
    new AjaxResponse('class@method');
```

Использование старого bitrix api
--------------------------------

[](#использование-старого-bitrix-api)

Важно: в запросе нужно передавать поле 'ajax' со значением 'Y'

```
    new AjaxResponse('class@method', true);
```

Пример
------

[](#пример)

```
define("STOP_STATISTICS", true);
define('NO_AGENT_CHECK', true);
define("STATISTIC_SKIP_ACTIVITY_CHECK", true);

use Domatskiy\AjaxResponse;

# подключаем bitrix
require($_SERVER["DOCUMENT_ROOT"]."/bitrix/modules/main/include/prolog_before.php");

if(class_exists('\Domatskiy\AjaxResponse')){

    new AjaxResponse(function(){

        $result = new AjaxResponse\Result();
        $data = array();

        # body

        $result->setData($data);
        return $result;

        });

    }
```

###  Health Score

27

—

LowBetter than 47% of packages

Maintenance20

Infrequent updates — may be unmaintained

Popularity10

Limited adoption so far

Community8

Small or concentrated contributor base

Maturity60

Established project with proven stability

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

Total

3

Last Release

3166d ago

### Community

Maintainers

![](https://www.gravatar.com/avatar/04668e09e1a26c17729902a7e1c686a35d03cd5cdc4fa76e9dc22f262821579a?d=identicon)[domatskiy](/maintainers/domatskiy)

---

Top Contributors

[![domatskiy](https://avatars.githubusercontent.com/u/1101584?v=4)](https://github.com/domatskiy "domatskiy (3 commits)")

---

Tags

useractionssave cookie

###  Code Quality

TestsPHPUnit

### Embed Badge

![Health badge](/badges/domatskiy-bitrix-ajax-response/health.svg)

```
[![Health](https://phpackages.com/badges/domatskiy-bitrix-ajax-response/health.svg)](https://phpackages.com/packages/domatskiy-bitrix-ajax-response)
```

###  Alternatives

[tormjens/eventy

The WordPress filter/action system in Laravel

438937.3k23](/packages/tormjens-eventy)[haruncpi/laravel-user-activity

Monitor user activity easily!

425179.9k2](/packages/haruncpi-laravel-user-activity)[bainternet/php-hooks

A fork of the WordPress filters hook system rolled in to a class to be ported into any PHP-based system

27623.1k5](/packages/bainternet-php-hooks)[lekoala/silverstripe-cms-actions

Add actions to your models in SilverStripe

39317.0k29](/packages/lekoala-silverstripe-cms-actions)[voku/php-hooks

A fork of the WordPress filters hook system rolled in to a class to be ported into any PHP-based system

7738.8k3](/packages/voku-php-hooks)[pavloniym/nova-action-buttons

A Laravel Nova field.

15214.0k](/packages/pavloniym-nova-action-buttons)

PHPackages © 2026

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