PHPackages                             merdan/gateway-tm - 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. merdan/gateway-tm

ActiveLibrary

merdan/gateway-tm
=================

A simple library that provides integration to local Bank payment processing services in Turkmenistan.

0.0.2(2y ago)16194MITPHPPHP ^8.1

Since Jul 31Pushed 2y ago1 watchersCompare

[ Source](https://github.com/merdiano/gateway-tm)[ Packagist](https://packagist.org/packages/merdan/gateway-tm)[ RSS](/packages/merdan-gateway-tm/feed)WikiDiscussions master Synced 1mo ago

READMEChangelog (2)Dependencies (4)Versions (3)Used By (0)

Gateway-TM
==========

[](#gateway-tm)

A simple library that provides integration to local Bank payment processing services in Turkmenistan.

Introduction
------------

[](#introduction)

Gateway-TM offers seamless integration with three primary payment services: Rysgal, AltynAsyr, and Senagat. This library facilitates the process of registering payment orders and checking their status. It has been designed to be easily extendable, allowing users to incorporate additional gateway services by extending the AbstractGateway class and implementing their custom class. This ensures a high level of flexibility in integrating new payment service types.

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

[](#requirements)

- Laravel 9 or higher
- PHP 8.1 or higher

Installation &amp; Instructions
-------------------------------

[](#installation--instructions)

Default installation is via [Composer](https://getcomposer.org/).

```
composer require merdan/gateway-tm
```

The package will automatically register itself. Add the Service Provider and alias manually to your `config/app` file in the `providers` section.

```
'providers' => [
    //...
    Merdanio\GatewayTM\Payment\Providers\GatewayServiceProvider::class,
]
```

```
    'aliases' => Facade::defaultAliases()->merge([
        // 'Example' => App\Facades\Example::class,
        'Gateway' => Merdanio\GatewayTM\Payment\Facades\GatewayFacade::class
    ])->toArray(),
```

Publish the config

```
php artisan vendor:publish --tag="gateway"
```

Please configure the following credentials in your .env file, which you will obtain from the bank.

`ALTYN_ASYR_USER=``ALTYN_ASYR_PASSWORD=``ALTYN_ASYR_API=``ALTYN_ASYR_ORDER_URI='register.do'``ALTYN_ASYR_STATUS_URI='orderStatus.do'`

`RYSGAL_USER=``RYSGAL_PASSWORD=``RYSGAL_API=``RYSGAL_ORDER_URI='register.do'``RYSGAL_STATUS_URI=`

`SENAGAT_USER=``SENAGAT_PASSWORD=``SENAGAT_API=``SENAGAT_ORDER_URI='register.do'``SENAGAT_STATUS_URI='orderStatus.do'`

Usage
-----

[](#usage)

Add Gateway facade to your class, controller

```
use Gateway;

class MyController extends Controller {

    public function index() {
        return Gateway::availableGates();
    }
}
```

### Available payment providers

[](#available-payment-providers)

```
Gateway::availableGates();
```

### Register order

[](#register-order)

```
Gateway::registerOrder('rysgal', // providers code
    'success_route_name',        // route to return when payment is successful
    'fail_route_name',           // route to return when payment failed
    14500,                       // payment amount 145 man.
    'Example Ecommerse payment', // payment description
    'ord-123'                    // payment order number
);
```

### Check payment status

[](#check-payment-status)

```
Gateway::getOrderStatus(
    'rysgal', //providers code
    'ord-123' //order number
);
```

License
-------

[](#license)

Is open-sourced software licensed under the [MIT license](http://opensource.org/licenses/MIT).

###  Health Score

24

—

LowBetter than 32% of packages

Maintenance20

Infrequent updates — may be unmaintained

Popularity16

Limited adoption so far

Community9

Small or concentrated contributor base

Maturity43

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

Total

2

Last Release

1021d ago

### Community

Maintainers

![](https://www.gravatar.com/avatar/2e58eabdda30902ed010339e0d90eb52c9023459b5e6aec274d676cf9bb7475e?d=identicon)[merdiano](/maintainers/merdiano)

---

Top Contributors

[![merdiano](https://avatars.githubusercontent.com/u/8520650?v=4)](https://github.com/merdiano "merdiano (11 commits)")

---

Tags

laravel-paymentlaravel-gatewayaltyn asyrrysgal banksenagatturkmen bank

###  Code Quality

TestsPHPUnit

### Embed Badge

![Health badge](/badges/merdan-gateway-tm/health.svg)

```
[![Health](https://phpackages.com/badges/merdan-gateway-tm/health.svg)](https://phpackages.com/packages/merdan-gateway-tm)
```

###  Alternatives

[barryvdh/laravel-translation-manager

Manage Laravel Translations

1.7k3.6M17](/packages/barryvdh-laravel-translation-manager)[proengsoft/laravel-jsvalidation

Validate forms transparently with Javascript reusing your Laravel Validation Rules, Messages, and FormRequest

1.1k2.3M49](/packages/proengsoft-laravel-jsvalidation)[kkomelin/laravel-translatable-string-exporter

Translatable String Exporter for Laravel

3291.4M10](/packages/kkomelin-laravel-translatable-string-exporter)[laravel-validation-rules/credit-card

Validate credit card number, expiration date, cvc

2412.2M5](/packages/laravel-validation-rules-credit-card)[erag/laravel-disposable-email

A Laravel package to detect and block disposable email addresses.

226102.4k](/packages/erag-laravel-disposable-email)[laravel-lang/json-fallback

Adds support for fallback JSON string translation

162.2M4](/packages/laravel-lang-json-fallback)

PHPackages © 2026

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