PHPackages                             fintech-fab/qiwi-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. fintech-fab/qiwi-sdk

ActiveService

fintech-fab/qiwi-sdk
====================

PHP SDK for Visa Qiwi Wallet (REST Protocol)

114.2k↓100%5PHP

Since Sep 29Pushed 8y ago6 watchersCompare

[ Source](https://github.com/fintech-fab/qiwi-sdk)[ Packagist](https://packagist.org/packages/fintech-fab/qiwi-sdk)[ RSS](/packages/fintech-fab-qiwi-sdk/feed)WikiDiscussions master Synced today

READMEChangelogDependenciesVersions (1)Used By (0)

Qiwi PHP SDK
============

[](#qiwi-php-sdk)

PHP SDK для работы с сервером QIWI через REST протокол. Используйте этот пакет чтобы обращаться к серверу QIWI. Подробная инструкция по использованию демо-сервера находится в разработке. Протестировать работу можно с пакетами эмуляции сервера QIWI и интернет магазина:

- QIWI-gate:
- QIWI-shop:

Требования
==========

[](#требования)

- php &gt;=5.3.0
- php5-curl

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

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

Composer
--------

[](#composer)

```
{
    "require": {
        "fintech-fab/qiwi-sdk": "dev-master"
    },
}

```

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

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

```
use FintechFab\QiwiSdk\Curl;
use FintechFab\QiwiSdk\Gateway;

$config = array(
	'gateUrl'  => 'url-to-qiwi-gate',
    'provider' => array(
	        'id'       => 'your-qiwi-gate-id',          //логин в системе QIWI
	        'password' => 'your-qiwi-gate-password',    //пароль в системе QIWI
	        'key'      => 'your-qiwi-gate-key',         //ключ для подписи в QIWI
	    ),
);

Gateway::setConfig($config);

$curl = new Curl();

// выставить счет
$gate = new Gateway($curl);
$billCreated = $gate->createBill(
	1234,		// номер заказа (счета) в вашей системе
	'+71234567890', // номер кошелька киви (моб. тел. плательщика)
	123.45,		// сумма счета
	'Комментарий!',	// комментрий к счету
	60*60*24	// на сутки
);

// проверить статус по номеру заказа (счета)
$gate = new Gateway($curl);
$statusChecked = $gate->doRequestBillStatus(1234);
if($statusChecked){
	$status = $gate->getValueBillStatus();
	switch($status){
		case 'payable': // ожидает оплаты
		case 'paid': // оплачен
		case 'canceled': // отменен
		case 'expired': // отменен, просрочен
	}
}

// отменить счет по номеру заказа (счета)
$gate = new Gateway($curl);
$billCanceled = $gate->cancelBill(1234);

// обработать callback от сервера
$gate = new Gateway($curl);
$correctCallback = $gate->doParseCallback();
if($correctCallback){
	$orderId = $gate->getCallbackOrderId();
	$amount = $gate->getCallbackAmount();
	$statusAfterCallback = $gate->getValueBillStatus();
	switch($statusAfterCallback){
		case 'paid': // оплачен
		case 'canceled': // отменен
		case 'expired': // отменен, просрочен
	}
}

// обработка ошибок
$gate = new Gateway($curl);
$billCreated = $gate->createBill(/*...*/);
if(!$billCreated){
	$errorMessage = $gate->getError();
}
```

###  Health Score

28

—

LowBetter than 57% of packages

Maintenance20

Infrequent updates — may be unmaintained

Popularity28

Limited adoption so far

Community15

Small or concentrated contributor base

Maturity41

Maturing project, gaining track record

 Bus Factor1

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

### Community

Maintainers

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

---

Top Contributors

[![eupathy](https://avatars.githubusercontent.com/u/6639227?v=4)](https://github.com/eupathy "eupathy (20 commits)")[![mikanoz](https://avatars.githubusercontent.com/u/2713277?v=4)](https://github.com/mikanoz "mikanoz (3 commits)")[![b1oki](https://avatars.githubusercontent.com/u/1561897?v=4)](https://github.com/b1oki "b1oki (2 commits)")

### Embed Badge

![Health badge](/badges/fintech-fab-qiwi-sdk/health.svg)

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

PHPackages © 2026

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