PHPackages                             idma/robokassa - 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. [Payment Processing](/categories/payments)
4. /
5. idma/robokassa

ActiveLibrary[Payment Processing](/categories/payments)

idma/robokassa
==============

PHP library for Robokassa payment system

v1.0.2(1y ago)4634.2k↓77.1%14[2 issues](https://github.com/idma/robokassa/issues)1BSD-3-ClausePHPPHP &gt;=5.4.0

Since Apr 10Pushed 1y ago5 watchersCompare

[ Source](https://github.com/idma/robokassa)[ Packagist](https://packagist.org/packages/idma/robokassa)[ Docs](https://github.com/idma/robokassa)[ RSS](/packages/idma-robokassa/feed)WikiDiscussions master Synced yesterday

READMEChangelog (10)DependenciesVersions (11)Used By (1)

PHP library for Robokassa payment system
----------------------------------------

[](#php-library-for-robokassa-payment-system)

[![Latest Unstable Version](https://camo.githubusercontent.com/91224ef18e4cb5136b4022695e9dc370e06bf20804e19c0988ab6ae282d2c75c/68747470733a2f2f706f7365722e707567782e6f72672f69646d612f726f626f6b617373612f762f756e737461626c652e737667)](https://packagist.org/packages/idma/robokassa)[![Latest Stable Version](https://camo.githubusercontent.com/ac659ca725ed3e310a58d8b50acd18a8cddc4c519a0ff359ccb733ca537da9c1/68747470733a2f2f706f7365722e707567782e6f72672f69646d612f726f626f6b617373612f762f737461626c652e737667)](https://packagist.org/packages/idma/robokassa)[![Total Downloads](https://camo.githubusercontent.com/90a2c040e1e235458031ef93e55c4c50085b3437dcb5acd835cbd03c3ed96fdb/68747470733a2f2f706f7365722e707567782e6f72672f69646d612f726f626f6b617373612f646f776e6c6f6164732e737667)](https://packagist.org/packages/idma/robokassa)[![License](https://camo.githubusercontent.com/4a36dca69fb3395f3e8be6be700c31d2ccd10fb622e50b03226461c8f951ba36/68747470733a2f2f706f7365722e707567782e6f72672f69646d612f726f626f6b617373612f6c6963656e73652e737667)](https://packagist.org/packages/idma/robokassa)

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

[](#installation)

Install this package through Composer. To your `composer.json` file, add:

```
{
    "require": {
        "idma/robokassa": "dev-master"
    }
}
```

Examples
--------

[](#examples)

Create payment:

```
$payment = new \Idma\Robokassa\Payment(
    'john_doe', 'password1', 'password2', true
);

$payment
    ->setInvoiceId($order->id)
    ->setSum($order->amount)
    ->setDescription('Payment for some goods');

// redirect to payment url
$user->redirect($payment->getPaymentUrl());
```

For pointining nomenclatures data:

```
// for details - https://docs.robokassa.ru/fiscalization/
$receiptData = array(
    'items' => array([
        'sum' => $sum,
        'name' => 'name of order',
        'quantity' => 1,
        'tax' => 'none',
    ])
);
$payment
    ->setInvoiceId($order->id)
    ->setSum($order->amount)
    ->setDescription('Payment for some goods')
    ->addReceiptData($receiptData);

...

Check payment result:
```php
// somewere in result url handler...
...
$payment = new \Idma\Robokassa\Payment(
    'john_doe', 'password1', 'password2', true
);

if ($payment->validateResult($_GET) {
    $order = Orders::find($payment->getInvoiceId());

    if ($payment->getSum() == $order->sum) {

    }

    // send answer
    echo $payment->getSuccessAnswer(); // "OK1254487\n"
}
...
```

Check payment on Success page:

```
...
$payment = new \Idma\Robokassa\Payment(
    'john_doe', 'password1', 'password2', true
);

if ($payment->validateSuccess($_GET) {
    $order = Orders::find($payment->getInvoiceId());

    if ($payment->getSum() == $order->sum) {
        // payment is valid
    }

}
...
```

###  Health Score

45

—

FairBetter than 91% of packages

Maintenance42

Moderate activity, may be stable

Popularity40

Moderate usage in the ecosystem

Community22

Small or concentrated contributor base

Maturity64

Established project with proven stability

 Bus Factor1

Top contributor holds 61.9% 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 ~404 days

Recently: every ~463 days

Total

10

Last Release

464d ago

### Community

Maintainers

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

---

Top Contributors

[![jhaoda](https://avatars.githubusercontent.com/u/2151259?v=4)](https://github.com/jhaoda "jhaoda (13 commits)")[![Artorios](https://avatars.githubusercontent.com/u/12603718?v=4)](https://github.com/Artorios "Artorios (2 commits)")[![opiy-org](https://avatars.githubusercontent.com/u/10293975?v=4)](https://github.com/opiy-org "opiy-org (2 commits)")[![Butochnikov](https://avatars.githubusercontent.com/u/4212297?v=4)](https://github.com/Butochnikov "Butochnikov (1 commits)")[![gam6itko](https://avatars.githubusercontent.com/u/3841197?v=4)](https://github.com/gam6itko "gam6itko (1 commits)")[![Retunsky](https://avatars.githubusercontent.com/u/7220337?v=4)](https://github.com/Retunsky "Retunsky (1 commits)")[![Xemii](https://avatars.githubusercontent.com/u/3420581?v=4)](https://github.com/Xemii "Xemii (1 commits)")

---

Tags

paymentrobokassaidma

### Embed Badge

![Health badge](/badges/idma-robokassa/health.svg)

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

###  Alternatives

[hiqdev/omnipay-robokassa

RoboKassa driver for Omnipay PHP payment library

1160.2k3](/packages/hiqdev-omnipay-robokassa)[lexty/robokassa

PHP library for Robokassa payment system

1338.9k](/packages/lexty-robokassa)[robokassa/sdk-php

SDK для работы с Robokassa в PHP

1213.1k](/packages/robokassa-sdk-php)[karser/robokassa-bundle

Bundle allows you to accept Robokassa payments

162.6k](/packages/karser-robokassa-bundle)[unetway/laravel-robokassa

Пакет для работы с Робокассой в Laravel

121.6k](/packages/unetway-laravel-robokassa)

PHPackages © 2026

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