PHPackages                             rocketfellows/tinkoff-invest-v1-users-rest-client - 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. rocketfellows/tinkoff-invest-v1-users-rest-client

ActiveLibrary[API Development](/categories/api)

rocketfellows/tinkoff-invest-v1-users-rest-client
=================================================

v1.0.0(3y ago)03MITPHPPHP &gt;=7.4

Since Jun 30Pushed 3y agoCompare

[ Source](https://github.com/rocketfellows/tinkoff-invest-v1-users-rest-client)[ Packagist](https://packagist.org/packages/rocketfellows/tinkoff-invest-v1-users-rest-client)[ RSS](/packages/rocketfellows-tinkoff-invest-v1-users-rest-client/feed)WikiDiscussions main Synced 1mo ago

READMEChangelog (1)Dependencies (4)Versions (2)Used By (0)

Tinkoff Invest V1 users service rest client
===========================================

[](#tinkoff-invest-v1-users-service-rest-client)

[![Code Coverage Badge](./badge.svg)](./badge.svg)

Simple implementation of tinkoff invest v1 users service. So far provides methods:

- GetAccounts - [https://tinkoff.github.io/investAPI/swagger-ui/#/UsersService/UsersService\_GetAccounts](https://tinkoff.github.io/investAPI/swagger-ui/#/UsersService/UsersService_GetAccounts)
- GetInfo - [https://tinkoff.github.io/investAPI/swagger-ui/#/UsersService/UsersService\_GetInfo](https://tinkoff.github.io/investAPI/swagger-ui/#/UsersService/UsersService_GetInfo)
- GetMarginAttributes - [https://tinkoff.github.io/investAPI/swagger-ui/#/UsersService/UsersService\_GetMarginAttributes](https://tinkoff.github.io/investAPI/swagger-ui/#/UsersService/UsersService_GetMarginAttributes)
- GetUserTariff - [https://tinkoff.github.io/investAPI/swagger-ui/#/UsersService/UsersService\_GetUserTariff](https://tinkoff.github.io/investAPI/swagger-ui/#/UsersService/UsersService_GetUserTariff)

Methods interfaces:

- rocketfellows\\TinkoffInvestV1UsersRestClient\\GetUserTariffInterface
- rocketfellows\\TinkoffInvestV1UsersRestClient\\GetMarginAttributesInterface
- rocketfellows\\TinkoffInvestV1UsersRestClient\\GetInfoInterface
- rocketfellows\\TinkoffInvestV1UsersRestClient\\GetAccountsInterface

Methods interfaces implementation aggregated in rocketfellows\\TinkoffInvestV1UsersRestClient\\UsersService.

For the sake of the interface segregation principle you should inject a specific interface as dependencies, and define the implementation through the container (DI).

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

[](#installation)

```
composer require rocketfellows/tinkoff-invest-v1-users-rest-client
```

Methods contract definition
---------------------------

[](#methods-contract-definition)

Component methods take an array as parameters, and raw arrays also serve as output values.

Methods throw the following types of exceptions:

- rocketfellows\\TinkoffInvestV1RestClient\\exceptions\\request\\ClientException
- rocketfellows\\TinkoffInvestV1RestClient\\exceptions\\request\\ServerException
- rocketfellows\\TinkoffInvestV1RestClient\\exceptions\\request\\HttpClientException

Component dependencies
----------------------

[](#component-dependencies)

"rocketfellows/tinkoff-invest-v1-rest-client": "1.0.2" - as a common http client.

Usage examples
--------------

[](#usage-examples)

Common http client configuration:

```
$client = new Client(
    (
        new ClientConfig(
            'https://invest-public-api.tinkoff.ru/rest',

        )
    ),
    new \GuzzleHttp\Client()
);
```

Users service configuration (or interface specific method configuration via DI):

```
$usersService = new UsersService($client);
```

Get account portfolio method call example:

```
$usersService->getAccounts();
```

Result scheme you can find here: [https://tinkoff.github.io/investAPI/swagger-ui/#/UsersService/UsersService\_GetAccounts](https://tinkoff.github.io/investAPI/swagger-ui/#/UsersService/UsersService_GetAccounts)

Contributing
------------

[](#contributing)

Welcome to pull requests. If there is a major changes, first please open an issue for discussion.

Please make sure to update tests as appropriate.

###  Health Score

21

—

LowBetter than 19% of packages

Maintenance20

Infrequent updates — may be unmaintained

Popularity3

Limited adoption so far

Community8

Small or concentrated contributor base

Maturity47

Maturing project, gaining track record

 Bus Factor1

Top contributor holds 76.5% 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

1413d ago

### Community

Maintainers

![](https://www.gravatar.com/avatar/81402dcd0a07ad550b7f80f5871e7c302770b29d4c73a52fc35ba697f702d56e?d=identicon)[arslanim](/maintainers/arslanim)

---

Top Contributors

[![arslanim](https://avatars.githubusercontent.com/u/22678154?v=4)](https://github.com/arslanim "arslanim (13 commits)")[![github-actions[bot]](https://avatars.githubusercontent.com/in/15368?v=4)](https://github.com/github-actions[bot] "github-actions[bot] (4 commits)")

---

Tags

phprestsdktinkoff-investusers-service

###  Code Quality

TestsPHPUnit

Static AnalysisPHPStan

Code StylePHP\_CodeSniffer

Type Coverage Yes

### Embed Badge

![Health badge](/badges/rocketfellows-tinkoff-invest-v1-users-rest-client/health.svg)

```
[![Health](https://phpackages.com/badges/rocketfellows-tinkoff-invest-v1-users-rest-client/health.svg)](https://phpackages.com/packages/rocketfellows-tinkoff-invest-v1-users-rest-client)
```

###  Alternatives

[stripe/stripe-php

Stripe PHP Library

4.0k143.3M480](/packages/stripe-stripe-php)[twilio/sdk

A PHP wrapper for Twilio's API

1.6k92.9M272](/packages/twilio-sdk)[knplabs/github-api

GitHub API v3 client

2.2k15.8M187](/packages/knplabs-github-api)[facebook/php-business-sdk

PHP SDK for Facebook Business

90121.9M34](/packages/facebook-php-business-sdk)[meilisearch/meilisearch-php

PHP wrapper for the Meilisearch API

73813.7M114](/packages/meilisearch-meilisearch-php)[google/gax

Google API Core for PHP

263103.1M454](/packages/google-gax)

PHPackages © 2026

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