PHPackages                             plaramart/tbi-bank - 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. plaramart/tbi-bank

ActiveLibrary[API Development](/categories/api)

plaramart/tbi-bank
==================

Bulgarian TBI bank API wrapper

1.0.0(4y ago)17MITPHP

Since Jun 25Pushed 4y agoCompare

[ Source](https://github.com/Plaramart/tbi-bank)[ Packagist](https://packagist.org/packages/plaramart/tbi-bank)[ RSS](/packages/plaramart-tbi-bank/feed)WikiDiscussions main Synced 3w ago

READMEChangelog (1)DependenciesVersions (2)Used By (0)

About
=====

[](#about)

This is standalone API wrapper for Bulgarian TBI Bank. Implement as payment method / recurring payment. Ask for calculations for single/all schemes and more;

Installation
============

[](#installation)

```
composer require plaramart/tbi-bank
```

Usage
=====

[](#usage)

Initialization
--------------

[](#initialization)

Initialize without framework

```
$client = new \Plaramart\TbiBank\Client('your-api-secret', __DIR__.'/folder/pub.pem');
```

Initialize using laravel framework, or you can install my laravel implementation

```
// Inside AppServiceProvider.php
$this->app->singleton(\Plaramart\TbiBank\Client::class, function () {
    $apiSecretKey = 'your-api-secret';
    $pathToCert = storage_path('app/pub.pem');
    return new \Plaramart\TbiBank\Client($apiSecretKey, $pathToCert);
});
```

Get calculation
---------------

[](#get-calculation)

### all schemes

[](#all-schemes)

Get calculations for all schemes. You can only pass first param (price) to get all data you need. Other params are not mandatory but you can fill them if needed.

```
// (float $price, float $initialPayment = 0, int $category = 10, $insurance = 'n')
$calculationRequest = new \Plaramart\TbiBank\Requests\CalculateForAllPeriodSchemesRequest(
    price: 113
);

$response = $client->execute($calculationRequest);
```

### single scheme

[](#single-scheme)

Second parameter is $period. That's the specific schema u want e.g calc(price: 113, period: 3)

```
// (float $price, int $period = 3, float $initialPayment = 0, int $category = 10, $insurance = 'n')
$calculationRequest = new \Plaramart\TbiBank\Requests\CalculateForPeriodRequest(
    price: 113,
    period: 3
);

$response = $client->execute($calculationRequest);
```

Submit order to TBI
-------------------

[](#submit-order-to-tbi)

```
$order = new CreateOrderRequest(price: 113, months: 3, initialPayment: 50);

$order->setUser(
    name: 'Zgdevv LordGeorgex',
    id: 9808027528,
    address: 'Na borovets batko',
    phone: '+35988888888',
    email: 'me@gmail.com'
);

// You can add as much as u want products.
// Product ID from your database. nothing to do with their API
$order->addProduct(
    id: 1,
    name: 'test',
    quantity: 2,
    price: 113
);

$response = $client->execute($order);
```

Contribution
============

[](#contribution)

Send PR for bug fixes or improvements. For contact

License
=======

[](#license)

MIT

###  Health Score

22

—

LowBetter than 21% of packages

Maintenance20

Infrequent updates — may be unmaintained

Popularity6

Limited adoption so far

Community6

Small or concentrated contributor base

Maturity48

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

Unknown

Total

1

Last Release

1469d ago

### Community

Maintainers

![](https://www.gravatar.com/avatar/1715a1bc7d15ca4a0d1c7c11f748710a61cf51ba252bb2e55aa13db441760088?d=identicon)[plaramart](/maintainers/plaramart)

---

Top Contributors

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

### Embed Badge

![Health badge](/badges/plaramart-tbi-bank/health.svg)

```
[![Health](https://phpackages.com/badges/plaramart-tbi-bank/health.svg)](https://phpackages.com/packages/plaramart-tbi-bank)
```

###  Alternatives

[exsyst/swagger

A php library to manipulate Swagger specifications

35916.4M7](/packages/exsyst-swagger)[hubspot/api-client

Hubspot API client

24016.2M20](/packages/hubspot-api-client)[pocketmine/bedrock-protocol

An implementation of the Minecraft: Bedrock Edition protocol in PHP

172445.0k15](/packages/pocketmine-bedrock-protocol)[botman/driver-telegram

Telegram driver for BotMan

93459.5k6](/packages/botman-driver-telegram)

PHPackages © 2026

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