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. [Payment Processing](/categories/payments)
4. /
5. merdan/gateway-tm

ActiveLibrary[Payment Processing](/categories/payments)

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

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

0.0.2(2y ago)16192MITPHPPHP ^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 yesterday

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 31% of packages

Maintenance20

Infrequent updates — may be unmaintained

Popularity15

Limited adoption so far

Community9

Small or concentrated contributor base

Maturity44

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

1067d ago

### Community

Maintainers

![](https://avatars.githubusercontent.com/u/8520650?v=4)[Merdan Ahmetovich](/maintainers/merdiano)[@merdiano](https://github.com/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

[illuminate/validation

The Illuminate Validation package.

18838.2M1.7k](/packages/illuminate-validation)[linkxtr/laravel-qrcode

A clean, modern, and easy-to-use QR code generator for Laravel

3720.4k](/packages/linkxtr-laravel-qrcode)[aedart/athenaeum

Athenaeum is a mono repository; a collection of various PHP packages

245.2k](/packages/aedart-athenaeum)

PHPackages © 2026

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