PHPackages                             metaseller/tinkoff-invest-api-v2-yii2 - 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. [Framework](/categories/framework)
4. /
5. metaseller/tinkoff-invest-api-v2-yii2

ActiveLibrary[Framework](/categories/framework)

metaseller/tinkoff-invest-api-v2-yii2
=====================================

Yii2 framework wrapper for unofficial PHP SDK for Tinkoff Invest API v2

0.2.2(3mo ago)3564↓50%1Apache-2.0PHPPHP &gt;=7.4.0

Since Feb 1Pushed 3mo ago1 watchersCompare

[ Source](https://github.com/metaseller/tinkoff-invest-api-v2-yii2)[ Packagist](https://packagist.org/packages/metaseller/tinkoff-invest-api-v2-yii2)[ Docs](https://github.com/metaseller/tinkoff-invest-api-v2-yii2)[ RSS](/packages/metaseller-tinkoff-invest-api-v2-yii2/feed)WikiDiscussions main Synced 1mo ago

READMEChangelogDependencies (2)Versions (22)Used By (1)

Yii2 wrapper for unofficial PHP SDK for Tinkoff Invest API v2
=============================================================

[](#yii2-wrapper-for-unofficial-php-sdk-for-tinkoff-invest-api-v2)

Это расширение позволяет использовать неофициальное PHP SDK for Tinkoff Invest API v2 [metaseller/tinkoff-invest-api-v2-php](https://packagist.org/packages/metaseller/tinkoff-invest-api-v2-php), по факту являясь вокруг него оберткой для вашего Yii2 приложения.

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

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

Самый оптимальный способ установки - это использование [composer](http://getcomposer.org/download/).

Если вы ранее уже ранее устанавливали в своем проекте [metaseller/tinkoff-invest-api-v2-php](https://packagist.org/packages/metaseller/tinkoff-invest-api-v2-php) через Composer, то для начала стоит выполнить

```
$ php composer.phar remove metaseller/tinkoff-invest-api-v2-php

```

Если нет - пропустите этот шаг.

Далее для установки выполните

```
$ php composer.phar require metaseller/tinkoff-invest-api-v2-yii2:*

```

или добавьте

```
"metaseller/tinkoff-invest-api-v2-yii2": "*"

```

в секцию `require` вашего `composer.json` файла.

Использование
-------------

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

1. Прочитайте требования к настройкам окружения в описании:
2. Добавьте компонент в ваш глобальный конфигурационный файл проекта `main.php`:

```
'components' => [
    'tinkoffInvest' => [
        'class' => 'Metaseller\yii2TinkoffInvestApi2\TinkoffInvestApi',
        'apiToken' => '',
    ],
],
```

Информация где взять токен здесь -

2. Теперь можно использовать компонент

```
/**
* Создаем экземпляр запроса информации об аккаунте к сервису
*
* Запрос не принимает никаких параметров на вход
*
* @see https://tinkoff.github.io/investAPI/users/#getinforequest
*/
$request = new GetInfoRequest();

/**
* @var GetInfoResponse $response - Получаем ответ, содержащий информацию о пользователе
*/
list($response, $status) = \Yii::$app->tinkoffInvest->usersServiceClient->GetInfo($request)->wait();

/** Выводим полученную информацию */
var_dump(['user_info' => [
   'prem_status' => $response->getPremStatus(),
   'qual_status' => $response->getQualStatus(),
   'qualified_for_work_with' => $response->getQualifiedForWorkWith(),
]]);

/**
* @var GetInfoResponse $response - Получаем ответ, содержащий информацию о пользователе
*/
list($response, $status) = \Yii::$app->tinkoffInvest->usersServiceClient->GetInfo($request)->wait();

/** Выводим полученную информацию */
var_dump(['user_info' => [
   'prem_status' => $response->getPremStatus(),
   'qual_status' => $response->getQualStatus(),
   'qualified_for_work_with' => $response->getQualifiedForWorkWith(),
]]);
```

###  Health Score

42

—

FairBetter than 90% of packages

Maintenance82

Actively maintained with recent releases

Popularity20

Limited adoption so far

Community9

Small or concentrated contributor base

Maturity48

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

Total

21

Last Release

92d ago

PHP version history (2 changes)0.1.1PHP &gt;=7.1.0

0.2.1PHP &gt;=7.4.0

### Community

Maintainers

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

---

Top Contributors

[![metaseller](https://avatars.githubusercontent.com/u/13105933?v=4)](https://github.com/metaseller "metaseller (26 commits)")

---

Tags

phptinkoff-invest-apitinkoff-sdkyii2yii2-componentphpyii2tinkofft-investt-investmentsinvest api sdkyii2-frameworkinvest apiYii2 wrappert-bank

### Embed Badge

![Health badge](/badges/metaseller-tinkoff-invest-api-v2-yii2/health.svg)

```
[![Health](https://phpackages.com/badges/metaseller-tinkoff-invest-api-v2-yii2/health.svg)](https://phpackages.com/packages/metaseller-tinkoff-invest-api-v2-yii2)
```

###  Alternatives

[luyadev/luya

LUYA is a scalable web framework and content management system with the goal to please developers, clients and users alike.

8086.9k2](/packages/luyadev-luya)[metaseller/tinkoff-invest-api-v2-php

Unofficial PHP SDK for T-Invest API v2

245.8k1](/packages/metaseller-tinkoff-invest-api-v2-php)[luyadev/luya-module-cms

The LUYA CMS module provides a full functional Content Management System for adding contents based on blocks.

32176.1k18](/packages/luyadev-luya-module-cms)

PHPackages © 2026

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