PHPackages                             execut/yii2-1c-odata - 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. [Database &amp; ORM](/categories/database)
4. /
5. execut/yii2-1c-odata

ActiveYii2-extension[Database &amp; ORM](/categories/database)

execut/yii2-1c-odata
====================

Yii2 component for work with 1C oData via activeRecord

0.1.8(4y ago)101.3k↓50%5[3 issues](https://github.com/execut/yii2-1c-odata/issues)Apache-2.0PHP

Since Nov 16Pushed 4y ago1 watchersCompare

[ Source](https://github.com/execut/yii2-1c-odata)[ Packagist](https://packagist.org/packages/execut/yii2-1c-odata)[ RSS](/packages/execut-yii2-1c-odata/feed)WikiDiscussions master Synced 1mo ago

READMEChangelogDependencies (2)Versions (10)Used By (0)

Yii2 wrapper via activeRecord for 1C oData
==========================================

[](#yii2-wrapper-via-activerecord-for-1c-odata)

Installation
------------

[](#installation)

The preferred way to install this extension is through [composer](http://getcomposer.org/download/).

### Install

[](#install)

Either run

```
$ php composer.phar require execut/yii2-1c-odata "dev-master"

```

or add

```
"execut/yii2-1c-odata": "dev-master"

```

to the `require` section of your `composer.json` file.

Configuration example
---------------------

[](#configuration-example)

Add to application config folowing rules:

```
[
    'components' => [
        'oData' => [
            'class' => \execut\oData\Client::class,
            'host' => $odataHost,
            'path' => $odataPath,
            'options' => [
                'auth' => [
                    $odataLogin,
                    $odataPassword,
                ],
            ],
            'customColumnsTypes' => [
                // Here you custom columns types stubs configuration. Example:
                'Catalog_Контрагенты' => [
                    'НаименованиеПолное' => 'text',
                ],
            ],
        ],
    ],
];
```

After configuration, you must declare your models and queries on the basis of two classes: execut\\oData\\ActiveRecord and execut\\oData\\ActiveQuery

Example model for standard document ЧекККМ ([source here](https://github.com/execut/yii2-1c-odata/tree/master/docs/models)):

```
use execut\oData\ActiveRecord;

class CheckKkm extends ActiveRecord
{
    public $complexRelations = [
        'Оплата',
        'Заказы'
    ];

    public function getОплата() {
        return $this->hasMany(CheckKkmPayment::class, [
            'Ref_Key' => 'Ref_Key',
        ]);
    }

    public static function tableName()
    {
        return 'Document_ЧекККМ';
    }
}

$check = CheckKkm::find()->andWhere([
    'Ref_Key' => '00000000-0000-0000-0000-000000000001'
])->one();
if ($check) {
    $check->attributes = [
        //...
    ];
    $check->save();
}
```

Your help was, would be useful
------------------------------

[](#your-help-was-would-be-useful)

For more information, there is not enough time =(

Planned
-------

[](#planned)

- Unit tests cover
- Extending functional to standard oData, without 1C

License
-------

[](#license)

**yii2-1c-odata** is released under the Apache License Version 2.0. See the bundled `LICENSE.md` for details.

###  Health Score

31

—

LowBetter than 68% of packages

Maintenance14

Infrequent updates — may be unmaintained

Popularity27

Limited adoption so far

Community10

Small or concentrated contributor base

Maturity59

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

Recently: every ~75 days

Total

9

Last Release

1760d ago

### Community

Maintainers

![](https://www.gravatar.com/avatar/0ffb982747c04d8d93e2db3f8d90e44864c7c2a21a4c3d00ffbe66325f3f91c4?d=identicon)[execut](/maintainers/execut)

---

Top Contributors

[![execut](https://avatars.githubusercontent.com/u/2357407?v=4)](https://github.com/execut "execut (15 commits)")

---

Tags

yii2activerecordodata

### Embed Badge

![Health badge](/badges/execut-yii2-1c-odata/health.svg)

```
[![Health](https://phpackages.com/badges/execut-yii2-1c-odata/health.svg)](https://phpackages.com/packages/execut-yii2-1c-odata)
```

###  Alternatives

[nhkey/yii2-activerecord-history

Storage history of changes to ActiveRecord

46143.4k1](/packages/nhkey-yii2-activerecord-history)[yii2tech/illuminate

Yii2 to Laravel Migration Package

11315.1k](/packages/yii2tech-illuminate)[spinitron/yii2-dynamic-ar

Extends Yii ActiveRecord for Maria Dynamic Columns

576.8k](/packages/spinitron-yii2-dynamic-ar)[jlorente/yii2-activerecord-inheritance

ActiveRecord Inheritance is an util to provide the Class Table Inheritance Pattern the to the Yii2 framework. It fakes inheritance between two ActiveRecord classes.

184.2k](/packages/jlorente-yii2-activerecord-inheritance)

PHPackages © 2026

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