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. [Utility &amp; Helpers](/categories/utility)
4. /
5. webpractik/agent

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

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

v1.0.4(5y ago)42.5k11MITPHPPHP &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 2d 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 66% of packages

Maintenance20

Infrequent updates — may be unmaintained

Popularity24

Limited adoption so far

Community9

Small or concentrated contributor base

Maturity58

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

2099d 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

[bitrix-expert/bbc

Bitrix basis components

10143.1k1](/packages/bitrix-expert-bbc)[bitrix-expert/tools

Helpers for developers on Bitrix

3720.9k1](/packages/bitrix-expert-tools)[bitrix-expert/bbc-module

Module with classes for the basis components

1952.0k1](/packages/bitrix-expert-bbc-module)[maximaster/tools.events

Библиотека осуществляет помощь для автоматической загрузки обработчиков событий при соблюдении определенной структуры

2530.3k](/packages/maximaster-toolsevents)[webarchitect609/bitrix-user-type

Set of custom Bitrix user property types and basic auxiliary functionality to help develop new types as easy and fast as it possible.

1318.7k1](/packages/webarchitect609-bitrix-user-type)[andreyryabin/sprint.options

Content options for 1C-Bitrix

185.7k](/packages/andreyryabin-sprintoptions)

PHPackages © 2026

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