PHPackages                             ildarbahtigozin/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. [API Development](/categories/api)
4. /
5. ildarbahtigozin/yii2-1c-odata

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

ildarbahtigozin/yii2-1c-odata
=============================

Yii2 component for work with 1C oData via activeRecord

0.1.8.4(2y ago)08Apache-2.0PHP

Since Nov 16Pushed 2y agoCompare

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

READMEChangelog (3)Dependencies (2)Versions (14)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

```
$ composer require ildarbahtigozin/yii2-1c-odata "dev-master"

```

or add

```
"ildarbahtigozin/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' => \ildarbahtigozin\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/ildarbahtigozin/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

25

—

LowBetter than 37% of packages

Maintenance20

Infrequent updates — may be unmaintained

Popularity4

Limited adoption so far

Community8

Small or concentrated contributor base

Maturity60

Established project with proven stability

 Bus Factor1

Top contributor holds 60% 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 ~180 days

Recently: every ~206 days

Total

13

Last Release

939d ago

### Community

Maintainers

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

---

Top Contributors

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

---

Tags

yii2activerecordodata

### Embed Badge

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

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

###  Alternatives

[apexwire/yii2-restclient

Tools to use API as ActiveRecord for Yii2

143.5k](/packages/apexwire-yii2-restclient)[dotzero/yii2-amocrm

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

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

Yii2 soap wsdl web services

1632.5k](/packages/conquer-services)[skeeks/yii2-google-api

Component for work with google api based on google/apiclient

1243.1k1](/packages/skeeks-yii2-google-api)[execut/yii2-1c-odata

Yii2 component for work with 1C oData via activeRecord

101.3k](/packages/execut-yii2-1c-odata)

PHPackages © 2026

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