PHPackages                             bitocredit/php-gateway - 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. bitocredit/php-gateway

ActiveLibrary[API Development](/categories/api)

bitocredit/php-gateway
======================

A PHP Library for integrate with bitocredit API.

v1.1.1(3y ago)0641MITPHP

Since Aug 14Pushed 3y agoCompare

[ Source](https://github.com/bitocredit/php-gateway)[ Packagist](https://packagist.org/packages/bitocredit/php-gateway)[ RSS](/packages/bitocredit-php-gateway/feed)WikiDiscussions main Synced 1mo ago

READMEChangelog (8)Dependencies (1)Versions (10)Used By (1)

### [Bitocredit PHP Library](https://bitocredit.com/document/en/post/php)

[](#bitocredit-php-library)

##### This library used for integrate with [Bitocredit](https://bitocredit.com/) api

[](#this-library-used-for-integrate-with-bitocredit-api)

usage
=====

[](#usage)

copy config.sample.php file in your project and rename it to config.php

fill the variables inside config.php file.

and use library like this:

```
    require "vendor/autoload.php";
    include_once "your_project_path/config.php"; // path to your config.php file

    use Bitocredit\PhpGateway\ApiPhp;

    // if you set variables inside config file . you don't have to pass constructor values
    $api = new ApiPhp("base_url" , "your_token");
    $result = $api->createWallet("wallet_id" , "network"); // replace wallet_id with your wallet id and set network type
```

methods
=======

[](#methods)

- [createWallet](#createwallet)
- [transactionCheck](#transactioncheck)
- [transactionRecovery](#transactionrecovery)
- [transactionFee](#transactionfee)
- [transactionExample](#transactionexample)

createWallet
==================================================

[](#createwallet)

This method used for creating wallet for user

endpoint : [https://bitocredit.com/api/create/wallet/{token}](https://bitocredit.com/api/create/wallet/%7Btoken%7D)

```
    $result = $api->createWallet("wallet_id" , "network"); // replace wallet_id with your wallet id and set network type
```

transactionCheck
==========================================================

[](#transactioncheck)

This method used for check a transaction is confirmed or not

endpoint : [https://bitocredit.com/api/transaction/check/{token}](https://bitocredit.com/api/transaction/check/%7Btoken%7D)

```
    $result = $api->transactionCheck("transaction_hash" , "wallet_address"); // replace transaction_hash and wallet_address with your transaction hash and wallet address
```

transactionRecovery
================================================================

[](#transactionrecovery)

This method used for check a transaction that is lost in blockchain

endpoint : [https://bitocredit.com/api/transaction/recovery/{token}](https://bitocredit.com/api/transaction/recovery/%7Btoken%7D)

```
    $result = $api->transactionRecovery("transaction_hash"); // replace transaction_hash with your transaction hash
```

transactionFee
======================================================

[](#transactionfee)

This method used for check a transaction that is lost in blockchain

endpoint : [https://bitocredit.com/api/transaction/fee/{token}](https://bitocredit.com/api/transaction/fee/%7Btoken%7D)

```
    $result = $api->transactionFee();
```

transactionExample
==============================================================

[](#transactionexample)

Please only use this api for test ! it's only an example to show how the server sends data to callback after payment confirmation

endpoint :

```
    $result = $api->transactionExample("transaction_hash"); // replace transaction_hash with your transaction hash
```

###  Health Score

25

—

LowBetter than 37% of packages

Maintenance20

Infrequent updates — may be unmaintained

Popularity8

Limited adoption so far

Community9

Small or concentrated contributor base

Maturity53

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

Recently: every ~17 days

Total

9

Last Release

1302d ago

### Community

Maintainers

![](https://www.gravatar.com/avatar/a0f9a46cf81b1da334ac80cfdaedd9f20f71430bda89cf3d835b42071e386d9a?d=identicon)[sinarajabpour1998](/maintainers/sinarajabpour1998)

![](https://www.gravatar.com/avatar/b94c6883121740d04424f0c155201ff6c109e507593acb4dc0d66403fc04dd6e?d=identicon)[rezaMotahary](/maintainers/rezaMotahary)

---

Top Contributors

[![rezaMotahary](https://avatars.githubusercontent.com/u/56221733?v=4)](https://github.com/rezaMotahary "rezaMotahary (23 commits)")

---

Tags

apicurrencyBitocredit

###  Code Quality

TestsPHPUnit

### Embed Badge

![Health badge](/badges/bitocredit-php-gateway/health.svg)

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

PHPackages © 2026

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