PHPackages                             tamara-solution/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. [API Development](/categories/api)
4. /
5. tamara-solution/php-sdk

ActiveLibrary[API Development](/categories/api)

tamara-solution/php-sdk
=======================

Tamara PHP Client Library

3.0.0(3w ago)10278.3k↓53.6%15[4 issues](https://github.com/Tamara-Technology/php-sdk/issues)[1 PRs](https://github.com/Tamara-Technology/php-sdk/pulls)1MITPHPPHP ^7.1|^8.0CI failing

Since May 3Pushed 3w ago2 watchersCompare

[ Source](https://github.com/Tamara-Technology/php-sdk)[ Packagist](https://packagist.org/packages/tamara-solution/php-sdk)[ Docs](https://github.com/tamara-solution/php-sdk)[ RSS](/packages/tamara-solution-php-sdk/feed)WikiDiscussions master Synced 3d ago

READMEChangelog (4)Dependencies (27)Versions (50)Used By (1)

Tamara PHP SDK
==============

[](#tamara-php-sdk)

Tamara PHP SDK is a wrapper for the Tamara API.

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

[](#installation)

Update `composer.json`

```
"require": {
    "tamara-solution/php-sdk": "^3.0.0"
}
```

If you are using PHP &lt; 8.1, please use the version, 2.x

```
"require": {
    "tamara-solution/php-sdk": "^2.0.0"
}
```

Usage
=====

[](#usage)

```
$configuration = Configuration::create($apiUrl, $apiToken, $apiRequestTimeout, $transport);
$client = Client::create($configuration);

$response = $client->getPaymentTypes('SA');

if ($response->isSuccess()) {
    var_dump($response->getPaymentTypes());
}
```

### Notification Service

[](#notification-service)

```
$notification = \Tamara\Notification\NotificationService::create('token-key');
$message = $notification->processAuthoriseNotification();

var_dump($message->getOrderId());
var_dump($message->getOrderStatus());
var_dump($message->getData());
```

##### Symfony DI

[](#symfony-di)

```
tamarapay.configuration:
    factory: ['Tamara\Configuration', create]
    arguments:
        - https://api.tamarapay.com
        - test_token

tamarapay.client:
    factory: ['Tamara\Client', create]
    arguments: ['@tamarapay.configuration']
```

Notes
=====

[](#notes)

- We use [Guzzlehttp](http://docs.guzzlephp.org/en/stable/) library as the default http client transport and [Nyholm http](https://github.com/Nyholm/psr7) as a backup
- You can use your own transport service and just need to implement the `Tamara\HttpClient\ClientInterface` and pass it to `Configuration::create` function

###  Health Score

60

—

FairBetter than 98% of packages

Maintenance86

Actively maintained with recent releases

Popularity44

Moderate usage in the ecosystem

Community22

Small or concentrated contributor base

Maturity74

Established project with proven stability

 Bus Factor2

2 contributors hold 50%+ of commits

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

Recently: every ~208 days

Total

47

Last Release

26d ago

Major Versions

1.3.15 → 2.0.12023-01-08

2.0.8 → 3.0.02026-06-08

PHP version history (3 changes)v1.0.0PHP ^7.1.0

1.2.8PHP ^7

1.3.0PHP ^7.1|^8.0

### Community

Maintainers

![](https://www.gravatar.com/avatar/056fdaee9d15ece45a78ce133e78b36d70473f4bf2c8c5b1ced1c263a1124548?d=identicon)[tamara](/maintainers/tamara)

---

Top Contributors

[![tamara-tech-tool](https://avatars.githubusercontent.com/u/77413631?v=4)](https://github.com/tamara-tech-tool "tamara-tech-tool (18 commits)")[![cuong-huynh-tamara](https://avatars.githubusercontent.com/u/88095959?v=4)](https://github.com/cuong-huynh-tamara "cuong-huynh-tamara (8 commits)")[![khngtamara](https://avatars.githubusercontent.com/u/77785509?v=4)](https://github.com/khngtamara "khngtamara (4 commits)")[![tamara-solution](https://avatars.githubusercontent.com/u/64744737?v=4)](https://github.com/tamara-solution "tamara-solution (4 commits)")[![viscod](https://avatars.githubusercontent.com/u/79667012?v=4)](https://github.com/viscod "viscod (1 commits)")[![imhmdb](https://avatars.githubusercontent.com/u/34659256?v=4)](https://github.com/imhmdb "imhmdb (1 commits)")[![kobenguyent](https://avatars.githubusercontent.com/u/7845001?v=4)](https://github.com/kobenguyent "kobenguyent (1 commits)")[![mAlaliSy](https://avatars.githubusercontent.com/u/14933812?v=4)](https://github.com/mAlaliSy "mAlaliSy (1 commits)")

---

Tags

installmenttamaratamara php sdkbuy now pay later

###  Code Quality

TestsPHPUnit

### Embed Badge

![Health badge](/badges/tamara-solution-php-sdk/health.svg)

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

###  Alternatives

[sylius/sylius

E-Commerce platform for PHP, based on Symfony framework.

8.5k5.9M738](/packages/sylius-sylius)[laravel/framework

The Laravel Framework.

34.8k543.8M20.1k](/packages/laravel-framework)[typo3/cms

TYPO3 CMS is a free open source Content Management Framework initially created by Kasper Skaarhoj and licensed under GNU/GPL.

1.2k1.9M122](/packages/typo3-cms)[tempest/framework

The PHP framework that gets out of your way.

2.2k34.4k15](/packages/tempest-framework)[drupal/core-recommended

Locked core dependencies; require this project INSTEAD OF drupal/core.

6942.5M421](/packages/drupal-core-recommended)[civicrm/civicrm-core

Open source constituent relationship management for non-profits, NGOs and advocacy organizations.

751291.4k43](/packages/civicrm-civicrm-core)

PHPackages © 2026

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