PHPackages                             akoteam/bitrah - 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. akoteam/bitrah

ActiveLibrary[API Development](/categories/api)

akoteam/bitrah
==============

bitrah gateway package for laravel

015PHP

Since Dec 29Pushed 3y ago2 watchersCompare

[ Source](https://github.com/umidzarei/Bitrah)[ Packagist](https://packagist.org/packages/akoteam/bitrah)[ RSS](/packages/akoteam-bitrah/feed)WikiDiscussions master Synced 1mo ago

READMEChangelogDependenciesVersions (1)Used By (0)

Bitrah Gateway Laravel Package
==============================

[](#bitrah-gateway-laravel-package)

### Introduction

[](#introduction)

Get cryptocurrency from foreign customers and receive your income in Rial with bitrah gateway ! ### License

[](#license)

The MIT License (MIT). Please see [License File](LICENSE.md) for more information.

### Version

[](#version)

v1.0.0

Getting Started
---------------

[](#getting-started)

### Install

[](#install)

```
composer require akoteam/bitrah

```

### Publish Config File

[](#publish-config-file)

```
 php artisan vendor:publish --tag=bitrah_config

```

Samples
-------

[](#samples)

### Payment

[](#payment)

```
$result = Bitrah::start_payment(orderId '1',rialValue '270000000', callbackurl 'http://your-domain.ir/path/to/callback', webhookkurl 'http://your-domain.ir/path/to/webhook');
/*
$result is :
[
'data'=>[
        'token'=>'0d0cd5a0445647asdasdcff2c48ad69e7',
        'redirectUrl'=>https://www.bitrah.ir/en/BitrahTestAccount?token=0d0cd5a044564783asc48ad69e7&mode=off&coin=BTC&amount=25000'',
        'multiCoinRedirectUrl'=>'https://www.bitrah.ir/en/BitrahTestAccount?token=0d0cd5asdcccff2c48ad69e7&mode=on&coin=BTC&amount=25000',
        'refId'=>'2547'
    ],
'message'=>'Successfully done!',
'timesatmp'=>'2020-11-14T06:56:43.646+0000',
'success'=>'true'
];
*/
```

You must save the information obtained from API in your database.

*Note:* the `refId` and `token` should not exist in your database.

Then you need to redirect the user to the `redirectUrl` received from the API; The user enters the Bitrah payment page.

After paying, the user returns to the provided `callbackurl`. At this stage, you should check that this request has not been processed before. Finally, after your webhook is confirmed, it will be called by Baitrah

### Check Status

[](#check-status)

You can also specify the status of your transaction using the `refId` at any time using the method below:

```
$result = Bitrah::check_status($refId);
/*
$result is:
array:4 [▼
  "data" => array:5 [▼
    "status" => 2
    "orderId" => "1"
    "refId" => "4805"
    "coin" => "TRX"
    "value" => "3.293901000"
  ]
  "message" => "Successfully done!"
  "timestamp" => "2020-11-22T07:16:15.936+0000"
  "success" => true
]
*/
```

Bitrah Documentation
--------------------

[](#bitrah-documentation)

[documentation](https://www.bitrah.ir/en/doc).

###  Health Score

15

—

LowBetter than 3% of packages

Maintenance20

Infrequent updates — may be unmaintained

Popularity6

Limited adoption so far

Community8

Small or concentrated contributor base

Maturity23

Early-stage or recently created project

 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.

### Community

Maintainers

![](https://www.gravatar.com/avatar/73b7c0dac62a44e75cc08aee7514c56b5994dda816abe004bfb0b613d7f0858d?d=identicon)[umidzarei](/maintainers/umidzarei)

---

Top Contributors

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

### Embed Badge

![Health badge](/badges/akoteam-bitrah/health.svg)

```
[![Health](https://phpackages.com/badges/akoteam-bitrah/health.svg)](https://phpackages.com/packages/akoteam-bitrah)
```

###  Alternatives

[stripe/stripe-php

Stripe PHP Library

4.0k143.3M480](/packages/stripe-stripe-php)[twilio/sdk

A PHP wrapper for Twilio's API

1.6k92.9M272](/packages/twilio-sdk)[knplabs/github-api

GitHub API v3 client

2.2k15.8M187](/packages/knplabs-github-api)[facebook/php-business-sdk

PHP SDK for Facebook Business

90121.9M34](/packages/facebook-php-business-sdk)[meilisearch/meilisearch-php

PHP wrapper for the Meilisearch API

73813.7M114](/packages/meilisearch-meilisearch-php)[google/gax

Google API Core for PHP

263103.1M454](/packages/google-gax)

PHPackages © 2026

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