PHPackages                             martinvondrak/platba-mobilom-php-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. [Payment Processing](/categories/payments)
4. /
5. martinvondrak/platba-mobilom-php-sdk

ActiveLibrary[Payment Processing](/categories/payments)

martinvondrak/platba-mobilom-php-sdk
====================================

SDK for payment gateway PlatbaMobilom.sk for PHP7.0

1.0(7y ago)02.1k↓66.7%MITPHPPHP &gt;=7.0

Since Jan 11Pushed 7y agoCompare

[ Source](https://github.com/MartinVondrak/platba-mobilom-php-sdk)[ Packagist](https://packagist.org/packages/martinvondrak/platba-mobilom-php-sdk)[ Docs](https://github.com/MartinVondrak/platba-mobilom-php-sdk)[ RSS](/packages/martinvondrak-platba-mobilom-php-sdk/feed)WikiDiscussions master Synced 1mo ago

READMEChangelogDependencies (1)Versions (3)Used By (0)

PlatbaMobilom.sk PHP SDK
========================

[](#platbamobilomsk-php-sdk)

This library provides simple interface for making payments through [PlatbaMobilom.sk](http://platbamobilom.sk/). In general PlatbaMobilom.sk supports online and offline payments. This library currently supports only online payment.

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

[](#requirements)

- PHP &gt;= 7.0

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

[](#installation)

The easiest way to install the SDK is to use dependency manager called [Composer](https://getcomposer.org/).

```
$ composer require martinvondrak/platba-mobilom-php-sdk

```

Basic usage
-----------

[](#basic-usage)

### Setting up client

[](#setting-up-client)

```
use MartinVondrak\PlatbaMobilom\PlatbaMobilomClient;

$pid = 1; // merchant ID
$url = 'https//www.shop.com/callback'; // URL of callback where user will be redirected from PlatbaMobilom.sk
$pwd = 'SecretPass'; // passphrase used for signing requests
$email = 'sales@shop.com'; // merchant email (optional)
$debug = true; // flag whether production or test environment is used
$platbaMobilomClient = new PlatbaMobilomClient($pid, $url, $pwd, $email, $debug);
```

### Creating payment

[](#creating-payment)

```
use MartinVondrak\PlatbaMobilom\Http\Request;

$id = 'aef4622'; // unique ID of payment
$description = 'Payment in www.shop.com'; // description of payment
$price = 6.5; // amount to pay in EUR
$request = new Request($id, $description, $price);
// client from previous step
$redirectUrl = $platbaMobilomClient->getGatewayUrl($request);
// now redirect user to $redirectUrl
```

### Verifying payment

[](#verifying-payment)

```
use MartinVondrak\PlatbaMobilom\Exception\InvalidSignatureException;
use MartinVondrak\PlatbaMobilom\Http\Response;

// following attributes are in query string in request on callback url from first step
$id = $_GET['ID']; // unique ID of payment
$result = $_GET['RES']; // status of payment
$responseSignature = $_GET['SIGN']; // signature of received parameters
$phone = $_GET['PHONE']; // phone number used for payment (optional)
$response = new Response($id, $result, $responseSignature, $phone);

try {
    // client from first step
    if ($platbaMobilomClient->checkResponse($response)) {
        // paid
    } else {
        // not paid or error
    }
} catch (InvalidSignatureException $ex) {
    // signature is not valid for received data
}
```

PlatbaMobilom.sk documentation
------------------------------

[](#platbamobilomsk-documentation)

For further information there is the official documentation of PlatbaMobilom.sk. Unfortunately the documentation is only in Slovak language.

- [Online payment technical documentation](https://platbamobilom.sk/doc/PlatbaMobilom_technicka_prirucka_online.pdf)

###  Health Score

29

—

LowBetter than 60% of packages

Maintenance20

Infrequent updates — may be unmaintained

Popularity18

Limited adoption so far

Community6

Small or concentrated contributor base

Maturity59

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

Every ~365 days

Total

2

Last Release

2679d ago

Major Versions

0.1 → 1.02019-01-11

### Community

Maintainers

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

---

Top Contributors

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

---

Tags

smspayment

###  Code Quality

Code StylePHP CS Fixer

### Embed Badge

![Health badge](/badges/martinvondrak-platba-mobilom-php-sdk/health.svg)

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

###  Alternatives

[alexanderpoellmann/paymentfont

PaymentFont - A sleek webfont for your favourite payment operators and methods

1.6k1.1k](/packages/alexanderpoellmann-paymentfont)[lucassmacedo/omnipay-mercadopago

MercadoPago gateway for OmniPay

154.6k](/packages/lucassmacedo-omnipay-mercadopago)

PHPackages © 2026

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