PHPackages                             ruswallet/sdk - 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. ruswallet/sdk

ActiveLibrary[API Development](/categories/api)

ruswallet/sdk
=============

Official PHP SDK for the RusWallet credit/installment API.

v0.1.0(today)00[1 PRs](https://github.com/ruswallet/php-sdk/pulls)MITPHPPHP ^8.2CI failing

Since Jun 20Pushed todayCompare

[ Source](https://github.com/ruswallet/php-sdk)[ Packagist](https://packagist.org/packages/ruswallet/sdk)[ Docs](https://github.com/ruswallet/php-sdk)[ RSS](/packages/ruswallet-sdk/feed)WikiDiscussions main Synced today

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

RusWallet PHP SDK
=================

[](#ruswallet-php-sdk)

[![Packagist Version](https://camo.githubusercontent.com/86e514fb4fce1cd2a18b1e368d0480e63de7a9ccdb7034c8c421df7162f4954f/68747470733a2f2f696d672e736869656c64732e696f2f7061636b61676973742f762f72757377616c6c65742f73646b2e737667)](https://packagist.org/packages/ruswallet/sdk)[![Total Downloads](https://camo.githubusercontent.com/086bcf9718c203a397d9020f6d93d7a1e5bf5081228778f6be43538ac9d4ef75/68747470733a2f2f696d672e736869656c64732e696f2f7061636b61676973742f64742f72757377616c6c65742f73646b2e737667)](https://packagist.org/packages/ruswallet/sdk)[![PHP Version](https://camo.githubusercontent.com/8d7ee396524e4dc490d853d598b209448489dfdc71ad26dcee41ddef5a347c34/68747470733a2f2f696d672e736869656c64732e696f2f7061636b61676973742f7068702d762f72757377616c6c65742f73646b2e737667)](https://packagist.org/packages/ruswallet/sdk)[![CI](https://github.com/ruswallet/php-sdk/actions/workflows/ci.yml/badge.svg)](https://github.com/ruswallet/php-sdk/actions/workflows/ci.yml)[![License](https://camo.githubusercontent.com/4946dab07f6605a8b58818341b1042bdcba9a2bb0af63df1cd77a19a122ec5d4/68747470733a2f2f696d672e736869656c64732e696f2f7061636b61676973742f6c2f72757377616c6c65742f73646b2e737667)](LICENSE)

Official PHP SDK for the [RusWallet](https://ruswallet.ru) credit/installment API. Targets PHP 8.2+ and uses Guzzle for HTTP.

```
composer require ruswallet/sdk
```

Quick start
-----------

[](#quick-start)

```
use RusWallet\Sdk\Client;
use RusWallet\Sdk\DTO\CreateApplicationRequest;
use RusWallet\Sdk\DTO\Customer;
use RusWallet\Sdk\DTO\Item;
use RusWallet\Sdk\Enums\CreditType;
use RusWallet\Sdk\Enums\ItemType;

$ruswallet = new Client(
    apiKey: getenv('RUSWALLET_API_KEY'),
    baseUrl: 'https://api.ruswallet.ru',
);

$response = $ruswallet->createApplication(new CreateApplicationRequest(
    orderId: 'SHOP-12345',
    items: [
        new Item('iPhone 15 Pro 256GB', 119990, 1, ItemType::Product),
    ],
    formSuccessUrl: 'https://shop.example.ru/order/12345/thanks',
    creditType: CreditType::Installment, // or CreditType::Credit; default installment
    customer: new Customer(
        phone: '+79991234567',
        firstName: 'Иван',
        lastName: 'Иванов',
    ),
));

header('Location: ' . $response->redirectUrl());
exit;
```

If `customer` is omitted, the response will contain `customer_form_url` — that URL is the RusWallet hosted form where the user enters their PII (two-phase flow). `redirectUrl()` automatically prefers it.

Authentication
--------------

[](#authentication)

Pass your partner's **server** API key. **Never** use the widget public key (`pk_…`) from server-side code: that's the browser-safe key, not the secret one.

Errors
------

[](#errors)

The SDK throws:

- `AuthenticationException` on 401/403
- `ValidationException` on 422 (carries `->errors` array)
- `ApiException` on other 4xx/5xx
- `RusWalletException` on network errors

Development
-----------

[](#development)

```
composer install
composer test
composer analyse
```

See [CONTRIBUTING.md](CONTRIBUTING.md) for conventions and [CHANGELOG.md](CHANGELOG.md) for release notes.

License
-------

[](#license)

Released under the [MIT License](LICENSE).

###  Health Score

36

—

LowBetter than 80% of packages

Maintenance100

Actively maintained with recent releases

Popularity0

Limited adoption so far

Community6

Small or concentrated contributor base

Maturity35

Early-stage or recently created project

 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

0d ago

### Community

Maintainers

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

---

Top Contributors

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

---

Tags

sdkposcreditinstallmentruswallet

###  Code Quality

TestsPHPUnit

Static AnalysisPHPStan

Code StylePHP CS Fixer

Type Coverage Yes

### Embed Badge

![Health badge](/badges/ruswallet-sdk/health.svg)

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

###  Alternatives

[aws/aws-sdk-php

AWS SDK for PHP - Use Amazon Web Services in your PHP project

6.2k532.1M2.5k](/packages/aws-aws-sdk-php)[tempest/framework

The PHP framework that gets out of your way.

2.2k31.1k12](/packages/tempest-framework)[telnyx/telnyx-php

Official Telnyx PHP SDK — APIs for Voice, SMS, MMS, WhatsApp, Fax, SIP Trunking, Wireless IoT, Call Control, and more. Build global communications on Telnyx's private carrier-grade network.

35729.6k2](/packages/telnyx-telnyx-php)[sylius/sylius

E-Commerce platform for PHP, based on Symfony framework.

8.5k5.8M711](/packages/sylius-sylius)[openai-php/client

OpenAI PHP is a supercharged PHP API client that allows you to interact with the Open AI API

5.8k26.1M294](/packages/openai-php-client)[neuron-core/neuron-ai

The PHP Agentic Framework.

1.9k496.1k33](/packages/neuron-core-neuron-ai)

PHPackages © 2026

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