PHPackages                             indrivo/maib-api - 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. indrivo/maib-api

ActiveLibrary[Payment Processing](/categories/payments)

indrivo/maib-api
================

0.1.3(10y ago)071MITPHPPHP &gt;=5.4.0

Since Aug 14Pushed 6y agoCompare

[ Source](https://github.com/indrivo/MaibApi)[ Packagist](https://packagist.org/packages/indrivo/maib-api)[ Docs](https://github.com/slavic18/MaibAPI)[ RSS](/packages/indrivo-maib-api/feed)WikiDiscussions master Synced 3w ago

READMEChangelogDependencies (4)Versions (5)Used By (0)

MaibAPI
=======

[](#maibapi)

Maib online payments php SDK

Installing
----------

[](#installing)

```
composer require indrivo/maib-api
```

Usage
-----

[](#usage)

```
namespace MyProject;
require_once(__DIR__ . '/vendor/autoload.php');

use Fruitware\MaibApi\MaibClient;
use Fruitware\MaibApi\MaibDescription;
use GuzzleHttp\Client;
use GuzzleHttp\HandlerStack;
use GuzzleHttp\Middleware;
use GuzzleHttp\MessageFormatter;
use Monolog\Handler\StreamHandler;
use Monolog\Logger;

//set options
$options = [
	'base_uri' => 'https://ecomm.maib.md:4455',
	'debug'  => false,
	'verify' => true,
	'cert'    => [__DIR__.'/cert/pcert.pem', 'Pem_pass'],
	'ssl_key' => __DIR__.'/cert/key.pem',
	'config'  => [
		'curl'  =>  [
			CURLOPT_SSL_VERIFYHOST => 2,
			CURLOPT_SSL_VERIFYPEER => true,
		]
	]
];

// create a log for client class, if you want (monolog/monolog required)
if ($log_is_required) {
	$log = new Logger('maib_guzzle_request');
	$log->pushHandler(new StreamHandler(__DIR__.'/logs/maib_guzzle_request.log', Logger::DEBUG));
	$stack = HandlerStack::create();
	$stack->push(
		Middleware::log($log, new MessageFormatter(MessageFormatter::DEBUG))
	);
	$options['handler'] = $stack;
}

// init Client
$guzzleClient = new Client($options);
$client = new MaibClient($guzzleClient);

// examples

//register sms transaction
var_dump($client->registerSmsTransaction('1', 498, '127.0.0.1', '', 'ru'));

//register dms authorization
var_dump($client->registerDmsAuthorization('1', 498, '127.0.0.1', '', 'ru'));

//execute dms transaction
var_dump($client->makeDMSTrans('1', '1', 498, '127.0.0.1', '', 'ru'));

//get transaction result
var_dump($client->getTransactionResult('1', '127.0.0.1'));

//revert transaction
var_dump($client->revertTransaction('1', '1'));

//transaction refund
var_dump($client->refundTransaction('1', '1'));

//close business day
var_dump($client->closeDay());
```

###  Health Score

23

—

LowBetter than 26% of packages

Maintenance20

Infrequent updates — may be unmaintained

Popularity5

Limited adoption so far

Community7

Small or concentrated contributor base

Maturity51

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 ~26 days

Total

4

Last Release

3897d ago

### Community

Maintainers

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

---

Top Contributors

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

---

Tags

paymentmaib

### Embed Badge

![Health badge](/badges/indrivo-maib-api/health.svg)

```
[![Health](https://phpackages.com/badges/indrivo-maib-api/health.svg)](https://phpackages.com/packages/indrivo-maib-api)
```

###  Alternatives

[laravel/framework

The Laravel Framework.

34.8k543.8M19.9k](/packages/laravel-framework)[craftcms/cms

Craft CMS

3.6k3.6M3.0k](/packages/craftcms-cms)[tempest/framework

The PHP framework that gets out of your way.

2.2k34.4k15](/packages/tempest-framework)[pantheon-systems/terminus

A command line interface for Pantheon

3391.5M18](/packages/pantheon-systems-terminus)[shopware/core

Shopware platform is the core for all Shopware ecommerce products.

585.6M568](/packages/shopware-core)[checkout/checkout-sdk-php

Checkout.com SDK for PHP

563.6M13](/packages/checkout-checkout-sdk-php)

PHPackages © 2026

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