PHPackages                             ar2rsoft/yii2-amocrm - 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. ar2rsoft/yii2-amocrm

ActiveYii2-extension[API Development](/categories/api)

ar2rsoft/yii2-amocrm
====================

Расширение для Yii Framework 2 реализующее клиент для работы с API amoCRM

v0.2.2(8y ago)033MITPHPPHP &gt;=5.5.0

Since May 11Pushed 7y ago1 watchersCompare

[ Source](https://github.com/ar2rsoft/yii2-amocrm)[ Packagist](https://packagist.org/packages/ar2rsoft/yii2-amocrm)[ RSS](/packages/ar2rsoft-yii2-amocrm/feed)WikiDiscussions master Synced today

READMEChangelogDependencies (3)Versions (5)Used By (0)

AmoCRM Extension for Yii 2
==========================

[](#amocrm-extension-for-yii-2)

[![Latest Stable Version](https://camo.githubusercontent.com/72d3365a431ce107b6d7407e4fad37016e9004dc118ff08170954061c7b395db/68747470733a2f2f706f7365722e707567782e6f72672f646f747a65726f2f796969322d616d6f63726d2f76657273696f6e)](https://packagist.org/packages/dotzero/yii2-amocrm)[![License](https://camo.githubusercontent.com/48f0177936a312ebfb3d34b359964decccae21f7cb53aa7550faeb3ec19588a5/68747470733a2f2f706f7365722e707567782e6f72672f646f747a65726f2f796969322d616d6f63726d2f6c6963656e7365)](https://packagist.org/packages/dotzero/yii2-amocrm)

Расширение для Yii Framework 2 реализующее клиент для работы с API amoCRM используя библиотеку для работы с API [amocrm-php](https://github.com/dotzero/amocrm-php).

Требования:
-----------

[](#требования)

- [Yii Framework 2](https://github.com/yiisoft/yii2)
- [Composer](http://getcomposer.org/doc/)

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

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

### Через composer:

[](#через-composer)

```
$ composer require dotzero/yii2-amocrm
```

- Добавить `amocrm` в секцию `components` конфигурационного файла:

```
'components' => [
    ...
    'amocrm' => [
        'class' => 'yii\amocrm\Client',
        'subdomain' => 'example', // Персональный поддомен на сайте amoCRM
        'login' => 'login@mail.com', // Логин на сайте amoCRM
        'hash' => '00000000000000000000000000000000', // Хеш на сайте amoCRM

        // Для хранения ID полей можно воспользоваться хелпером
        'fields' => [
            'StatusId' => 10525225,
            'ResponsibleUserId' => 697344,
        ],
    ],
],
```

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

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

```
try {
    // Получение экземпляра модели для работы с аккаунтом
    $amo = Yii::$app->amocrm->getClient();
    $account = $amo->account;

    // или прямо
    $account = Yii::$app->amocrm->account;

    // Вывод информации об аккаунте
    print_r($account->apiCurrent());

    // Получение экземпляра модели для работы с контактами
    $contact = $amo->contact;

    // Заполнение полей модели
    $contact['name'] = 'ФИО';
    $contact['request_id'] = '123456789';
    $contact['date_create'] = '-2 DAYS';
    $contact['responsible_user_id'] = $amo->fields['ResponsibleUserId'];
    $contact['company_name'] = 'ООО Тестовая компания';
    $contact['tags'] = ['тест1', 'тест2'];
    $contact->addCustomField(448, [
        ['+79261112233', 'WORK'],
    ]);

    // Добавление нового контакта и получение его ID
    print_r($contact->apiAdd());

} catch (\AmoCRM\Exception $e) {
    printf('Error (%d): %s' . PHP_EOL, $e->getCode(), $e->getMessage());
}
```

Документация
------------

[](#документация)

Смотреть документацию к библиотеке [amocrm-php](https://github.com/dotzero/amocrm-php).

Лицензия
--------

[](#лицензия)

Библиотека доступна на условиях лицензии MIT:

###  Health Score

24

—

LowBetter than 32% of packages

Maintenance20

Infrequent updates — may be unmaintained

Popularity7

Limited adoption so far

Community10

Small or concentrated contributor base

Maturity51

Maturing project, gaining track record

 Bus Factor1

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

###  Release Activity

Cadence

Every ~204 days

Total

4

Last Release

3039d ago

PHP version history (2 changes)v0.1.0PHP &gt;=5.4.0

v0.2.0PHP &gt;=5.5.0

### Community

Maintainers

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

---

Top Contributors

[![dotzero](https://avatars.githubusercontent.com/u/265633?v=4)](https://github.com/dotzero "dotzero (13 commits)")[![ar2rsoft](https://avatars.githubusercontent.com/u/1770866?v=4)](https://github.com/ar2rsoft "ar2rsoft (2 commits)")[![mauztor](https://avatars.githubusercontent.com/u/5955469?v=4)](https://github.com/mauztor "mauztor (1 commits)")

---

Tags

apiyii2extensioncrmamoCRM

###  Code Quality

TestsPHPUnit

### Embed Badge

![Health badge](/badges/ar2rsoft-yii2-amocrm/health.svg)

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

###  Alternatives

[dotzero/yii2-amocrm

Расширение для Yii Framework 2 реализующее клиент для работы с API amoCRM

1639.7k](/packages/dotzero-yii2-amocrm)[dotzero/laravel-amocrm

ServiceProvider и Facade для Laravel 5 предоставляющие интеграцию с API amoCRM

3229.2k](/packages/dotzero-laravel-amocrm)[mikemadisonweb/yii2-elasticsearch

Yii2 extension for integration with Elasticsearch version 5.0 and above.

153.9k](/packages/mikemadisonweb-yii2-elasticsearch)[apexwire/yii2-restclient

Tools to use API as ActiveRecord for Yii2

143.5k](/packages/apexwire-yii2-restclient)

PHPackages © 2026

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