PHPackages                             webpractik/agent - 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. webpractik/agent

ActiveLibrary

webpractik/agent
================

v1.0.4(5y ago)42.4k11MITPHPPHP &gt;=7.0

Since Jul 5Pushed 5y agoCompare

[ Source](https://github.com/webpractik/agent)[ Packagist](https://packagist.org/packages/webpractik/agent)[ RSS](/packages/webpractik-agent/feed)WikiDiscussions master Synced 2mo ago

READMEChangelog (2)DependenciesVersions (6)Used By (1)

Обертка для работы с агентами Битрикс
=====================================

[](#обертка-для-работы-с-агентами-битрикс)

За основу был взят функционал для работы с агентами из console-jedi

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

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

```
composer require webpractik/agent
```

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

[](#примеры)

##### Регистрация агента

[](#регистрация-агента)

Проверяет, существует ли в БД агент. Если нет, то регистрирует его.

```
use Webpractik\Agent\AgentTask;
use Vendor\Module\TestAgent;
use Bitrix\Main\Type\DateTime;

AgentTask::build()
    ->setClass(TestAgent::class)
    ->setCallChain(
        ['execute' => [$params]]
    )
    ->setModule('vendor.module')
    ->setExecutionTime(DateTime::createFromTimestamp(time() + 60)) // optional
    ->setUserId(1) // optional
    ->create();
```

#### Пример метода

[](#пример-метода)

```
namespace Vendor\Module;

class TestAgent
{
    use AgentTrait;

    public function execute()
    {
        // some code

        return $this->getAgentName(['execute' => []]); // метод обязательно должен вернуть имя агента
    }
}
```

###  Health Score

31

—

LowBetter than 68% of packages

Maintenance20

Infrequent updates — may be unmaintained

Popularity24

Limited adoption so far

Community9

Small or concentrated contributor base

Maturity57

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.

###  Release Activity

Cadence

Every ~113 days

Total

5

Last Release

2047d ago

PHP version history (2 changes)v1.0.0PHP &gt;=7.1

v1.0.3PHP &gt;=7.0

### Community

Maintainers

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

---

Top Contributors

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

---

Tags

bitrix

### Embed Badge

![Health badge](/badges/webpractik-agent/health.svg)

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

###  Alternatives

[composer/installers

A multi-framework Composer library installer

1.4k136.0M6.0k](/packages/composer-installers)[andreyryabin/sprint.migration

bitrix migration module

205195.8k2](/packages/andreyryabin-sprintmigration)[digitalwand/digitalwand.admin_helper

API for custom admin interface in Bitrix by DigitalWand and Notamedia agency

15633.5k3](/packages/digitalwand-digitalwandadmin-helper)[andrey-tech/bitrix24-api-php

Обертка на PHP7+ для работы с API Битрикс24 с использованием механизма входящих вебхуков, троттлингом запросов и логированием в файл

9874.2k](/packages/andrey-tech-bitrix24-api-php)[bitrix-expert/bbc

Bitrix basis components

10242.9k1](/packages/bitrix-expert-bbc)[notamedia/console-jedi

Console application for CMS Bitrix

8942.5k1](/packages/notamedia-console-jedi)

PHPackages © 2026

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