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

ActiveLibrary[Payment Processing](/categories/payments)

forgingblock/forgingblock-php
=============================

ForgingBlock Crypto Payment Gateway PHP API library

27309PHP

Since Dec 1Pushed 4y ago2 watchersCompare

[ Source](https://github.com/forgingblock/ForgingBlock-php-lib)[ Packagist](https://packagist.org/packages/forgingblock/forgingblock-php)[ RSS](/packages/forgingblock-forgingblock-php/feed)WikiDiscussions master Synced 1w ago

READMEChangelogDependenciesVersions (1)Used By (0)

ForgingBlock PHP
================

[](#forgingblock-php)

The official PHP library for the [ForgingBlock API](https://api.forgingblock.io/docs/).

PHP versions
------------

[](#php-versions)

PHP version 5.4 and above are supported.

Documentation
-------------

[](#documentation)

For more details visit [ForgingBlock API docs](https://api.forgingblock.io/docs/).

Installation
------------

[](#installation)

Install with `composer`:

```
composer require forgingblock/forgingblock-php
```

Usage
-----

[](#usage)

```
use Forgingblock\ApiClient;

//$payment_mode are test or live
$forgingblock = new ApiClient($payment_mode);
$forgingblock->SetValue('trade',  $trade);
$forgingblock->SetValue('token', $token);
$forgingblock->SetValue('amount', round($amount, 2));
$forgingblock->SetValue('currency',$currency_code);
$forgingblock->SetValue('link', $returnURL);
$forgingblock->SetValue('notification', $notifyURL);
$forgingblock->SetValue('order', $order_id);
$forgingblock->CreateInvoice();
$InvoiceURL = $forgingblock->GetInvoiceURL();
if ($InvoiceURL) header('Location: '.$InvoiceURL);
else echo  $forgingblock->GetError();
```

Notifications
-------------

[](#notifications)

```
use Forgingblock\ApiClient;
$forgingblock = new ApiClient($payment_mode);
$forgingblock->SetValue('trade',  $trade);
$forgingblock->SetValue('token', $token);
$forgingblock->SetValue('invoice', $invoice_id);

$forgingblock->CheckInvoiceStatus();
$payment_status = $forgingblock->GetInvoiceStatus();
```

###  Health Score

21

—

LowBetter than 18% of packages

Maintenance20

Infrequent updates — may be unmaintained

Popularity19

Limited adoption so far

Community11

Small or concentrated contributor base

Maturity28

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/c23b4b50173ba666fff9ea8e9dafae71ca157e0b884a9d5b86f6d8e9c3c343b3?d=identicon)[JaqenSyrio](/maintainers/JaqenSyrio)

---

Top Contributors

[![JaqenSyrio](https://avatars.githubusercontent.com/u/77819086?v=4)](https://github.com/JaqenSyrio "JaqenSyrio (2 commits)")

### Embed Badge

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

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

###  Alternatives

[omnipay/paypal

PayPal gateway for Omnipay payment processing library

3156.8M53](/packages/omnipay-paypal)[eduardokum/laravel-boleto

Biblioteca com boletos para o laravel

626351.9k2](/packages/eduardokum-laravel-boleto)[tbbc/money-bundle

This is a Symfony bundle that integrates moneyphp/money library (Fowler pattern): https://github.com/moneyphp/money.

1961.9M](/packages/tbbc-money-bundle)[2checkout/2checkout-php

2Checkout PHP Library

83740.3k2](/packages/2checkout-2checkout-php)[smhg/sepa-qr-data

Generate QR code data for SEPA payments

61717.2k5](/packages/smhg-sepa-qr-data)[omnipay/dummy

Dummy driver for the Omnipay payment processing library

271.2M33](/packages/omnipay-dummy)

PHPackages © 2026

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