PHPackages                             sabercoding/yii2-ots - 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. sabercoding/yii2-ots

ActiveYii2-extension

sabercoding/yii2-ots
====================

This extension provides the OTS integration for the Yii2.

v0.1(9y ago)121BSD-3-ClausePHP

Since Dec 22Pushed 9y ago1 watchersCompare

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

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

Ots for Yii 2
=============

[](#ots-for-yii-2)

This extension provides the [ots](https://help.aliyun.com/document_detail/27280.html?spm=5176.7727283.6.539.MdnSPT) integration for the [Yii framework 2.0](http://www.yiiframework.com). It includes basic querying/search support and also implements the `ActiveRecord` pattern that allows you to store active records in elasticsearch.

For license information check the [LICENSE](LICENSE.md)-file.

Documentation is at [docs/guide/README.md](docs/guide/README.md).

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

[](#installation)

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

Either run

```
php composer.phar require --prefer-dist sabercoding/yii2-ots

```

to the require section of your composer.json.

Configuration
-------------

[](#configuration)

To use this extension, you have to configure the Connection class in your application configuration:

```
return [
    //....
    'components' => [
        'ots' => [
            'EndPoint' => '',
            'AccessKeyID' => '',
            'AccessKeySecret' => '',
            'InstanceName' => '',
            'DebugLogHandler' => '',
            'ConnectionTimeout' => '',
            'SocketTimeout' => '',
            'ErrorLogHandler' => '',
        ],
    ]
];
```

###  Health Score

24

—

LowBetter than 32% of packages

Maintenance20

Infrequent updates — may be unmaintained

Popularity5

Limited adoption so far

Community8

Small or concentrated contributor base

Maturity53

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

Unknown

Total

1

Last Release

3426d ago

### Community

Maintainers

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

---

Top Contributors

[![sabercoding](https://avatars.githubusercontent.com/u/5622758?v=4)](https://github.com/sabercoding "sabercoding (10 commits)")

---

Tags

tablestoreyii2active-recordots

### Embed Badge

![Health badge](/badges/sabercoding-yii2-ots/health.svg)

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

###  Alternatives

[yiisoft/yii2-redis

Redis Cache, Session and ActiveRecord for the Yii framework

48011.7M244](/packages/yiisoft-yii2-redis)[yiisoft/yii2-mongodb

MongoDB extension for the Yii framework

3312.1M43](/packages/yiisoft-yii2-mongodb)[yiisoft/yii2-sphinx

Sphinx full text search engine extension for the Yii framework

180997.7k5](/packages/yiisoft-yii2-sphinx)[voskobovich/yii2-linker-behavior

This behavior makes it easy to maintain many-to-many and one-to-many relations in your ActiveRecord models.

80319.0k9](/packages/voskobovich-yii2-linker-behavior)[arogachev/yii2-excel

ActiveRecord import and export based on PHPExcel for Yii 2 framework

6480.3k1](/packages/arogachev-yii2-excel)[simialbi/yii2-rest-client

REST client (AR-like model) for Yii Framework 2.0 (via yii2-http-client, extends ApexWire/yii2-restclient)

2232.5k](/packages/simialbi-yii2-rest-client)

PHPackages © 2026

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