PHPackages                             soleniye/yoomoney-sdk-php - 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. soleniye/yoomoney-sdk-php

ActiveLibrary[API Development](/categories/api)

soleniye/yoomoney-sdk-php
=========================

Yoomoney API SDK for PHP

1.0.0(4y ago)037MITPHPPHP &gt;=5.3.0

Since May 22Pushed 4y ago1 watchersCompare

[ Source](https://github.com/soleniye/yoomoney-sdk-php)[ Packagist](https://packagist.org/packages/soleniye/yoomoney-sdk-php)[ RSS](/packages/soleniye-yoomoney-sdk-php/feed)WikiDiscussions main Synced yesterday

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

\[UNOFFICIAL\] PHP Yoomoney API SDK
===================================

[](#unofficial-php-yoomoney-api-sdk)

Requirements
------------

[](#requirements)

PHP 5.3 or above

Links
-----

[](#links)

Yoomoney API page: [Ru](https://yoomoney.ru/docs/wallet), [En](https://yoomoney.ru/docs/wallet?lang=en)

Getting started
---------------

[](#getting-started)

### Installation

[](#installation)

1. Add `"soleniye/yoomoney-sdk-php": "1.0.*"` to `composer.json` of your application. Or clone repo to your project.
2. If you are using composer - simply use `require_once 'vendor/autoload.php';` otherwise paste following code ```
    require_once '/path/to/cloned/repo/lib/api.php';
    ```

### Payments from the Yoomoney wallet

[](#payments-from-the-yoomoney-wallet)

Using Yoomoney API requires following steps

1. Obtain token URL and redirect user's browser to Yoomoney service. Note: `client_id`, `redirect_uri`, `client_secret` are constants that you get, when [register](https://yoomoney.ru/myservices/new) app in Yoomoney API.

    ```
    use \YooMoney\API;

    $auth_url = API::buildObtainTokenUrl($client_id, $redirect_uri, $scope);
    ```
2. After that, user fills Yoomoney HTML form and user is redirected back to `REDIRECT_URI?code=CODE`.
3. You should immediately exchange `CODE` with `ACCESS_TOKEN`.

    ```
    $access_token_response = API::getAccessToken($client_id, $code, $redirect_uri, $client_secret=NULL);
    if(property_exists($access_token_response, "error")) {
        // process error
    }
    $access_token = $access_token_response->access_token;
    ```
4. Now you can use Yoomoney API.

    ```
    $api = new API($access_token);

    // get account info
    $acount_info = $api->accountInfo();

    // check status

    // get operation history with last 3 records
    $operation_history = $api->operationHistory(array("records"=>3));

    // check status

    // make request payment
    $request_payment = $api->requestPayment(array(
        "pattern_id" => "p2p",
        "to" => $money_wallet,
        "amount_due" => $amount_due,
        "comment" => $comment,
        "message" => $message,
        "label" => $label,
    ));

    // check status

    // call process payment to finish payment
    $process_payment = $api->processPayment(array(
        "request_id" => $request_payment->request_id,
    ));
    ```

Side notes
----------

[](#side-notes)

1. Library throws exceptions in case of
    - response status isn't equal 2\*\*
    - I/O error(see [requests](https://github.com/rmccue/Requests))
2. If you register app and fill `CLIENT_SECRET` entry then you should provide `$client_secret` explicitly where `$client_secret=NULL`
3. You should wrap all passed boolean values in quotes(because php converts them to numbers otherwise). For example:

```
API($access_token).requestPayment(array(
    test_payment => "true",
    // other params
));
```

Running tests
-------------

[](#running-tests)

1. Clone this repo.
2. Install composer
3. Run `composer install`
4. Make sure `phpunit` executable is present in your `$PATH`
5. Create `tests/constants.php` with `CLIENT_ID`, `CLIENT_SECRET` and `ACCESS_TOKEN`constants.
6. Run tests `phpunit --bootstrap vendor/autoload.php tests/`

###  Health Score

22

—

LowBetter than 22% of packages

Maintenance20

Infrequent updates — may be unmaintained

Popularity7

Limited adoption so far

Community7

Small or concentrated contributor base

Maturity46

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

1815d ago

### Community

Maintainers

![](https://avatars.githubusercontent.com/u/84627007?v=4)[soleniye](/maintainers/soleniye)[@soleniye](https://github.com/soleniye)

---

Top Contributors

[![soleniye](https://avatars.githubusercontent.com/u/84627007?v=4)](https://github.com/soleniye "soleniye (2 commits)")

---

Tags

phpsdkyoomoney

###  Code Quality

TestsPHPUnit

### Embed Badge

![Health badge](/badges/soleniye-yoomoney-sdk-php/health.svg)

```
[![Health](https://phpackages.com/badges/soleniye-yoomoney-sdk-php/health.svg)](https://phpackages.com/packages/soleniye-yoomoney-sdk-php)
```

###  Alternatives

[deepseek-php/deepseek-php-client

deepseek PHP client is a robust and community-driven PHP client library for seamless integration with the Deepseek API, offering efficient access to advanced AI and data processing capabilities.

47073.9k5](/packages/deepseek-php-deepseek-php-client)[jstolpe/instagram-graph-api-php-sdk

Instagram Graph API PHP SDK

13998.4k2](/packages/jstolpe-instagram-graph-api-php-sdk)[octw/aramex

A Library to integrate with Aramex APIs

2925.2k](/packages/octw-aramex)[jeffreyhyer/bamboohr

PHP SDK for the BambooHR API

1077.3k1](/packages/jeffreyhyer-bamboohr)

PHPackages © 2026

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