PHPackages                             persiscal/binance - 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. persiscal/binance

ActiveLibrary[Payment Processing](/categories/payments)

persiscal/binance
=================

Binance Merchant Acquiring (C2B) integration made for Laravel 8.

0101PHP

Since Dec 20Pushed 3y ago1 watchersCompare

[ Source](https://github.com/gcpiarrou/laravel-binance-c2b)[ Packagist](https://packagist.org/packages/persiscal/binance)[ RSS](/packages/persiscal-binance/feed)WikiDiscussions main Synced 1mo ago

READMEChangelogDependenciesVersions (1)Used By (0)

[![Persiscal](https://camo.githubusercontent.com/5d093747ca7a8e2808425f32eb16a0762c187fa1ef8492b44b95a6130141ca7d/68747470733a2f2f75706c6f6164732d73736c2e776562666c6f772e636f6d2f3632363162633235323331613065393338346563656337352f3632633530326566616232313635396539633264303461665f6c6f676f6669726d615f70657273697363616c2d702d3530302e706e67)](https://www.persiscal.com/)

 [![binance](https://camo.githubusercontent.com/34e41bd4cd0f9de077626d579e9e9a8ae0df001e0819b44384931be0b7abfc9a/68747470733a2f2f75706c6f61642e77696b696d656469612e6f72672f77696b6970656469612f636f6d6d6f6e732f7468756d622f662f66632f42696e616e63652d636f696e2d626e622d6c6f676f2e706e672f32343070782d42696e616e63652d636f696e2d626e622d6c6f676f2e706e67)](https://camo.githubusercontent.com/34e41bd4cd0f9de077626d579e9e9a8ae0df001e0819b44384931be0b7abfc9a/68747470733a2f2f75706c6f61642e77696b696d656469612e6f72672f77696b6970656469612f636f6d6d6f6e732f7468756d622f662f66632f42696e616e63652d636f696e2d626e622d6c6f676f2e706e672f32343070782d42696e616e63652d636f696e2d626e622d6c6f676f2e706e67) Laravel Binance C2B integration
--------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------

[](#--------laravel-binance-c2b-integration)

Binance Merchant Acquiring (C2B) integration made for Laravel 8. Getting started
---------------

[](#getting-started)

This integration covers the next API functions:

- [Create Order](https://developers.binance.com/docs/binance-pay/api-order-create-v2)
- [Query Order](https://developers.binance.com/docs/binance-pay/api-order-query-v2)
- [Close Order](https://developers.binance.com/docs/binance-pay/api-order-close)
- [Refund Order](https://developers.binance.com/docs/binance-pay/api-order-refund)
- [Query Refund Order](https://developers.binance.com/docs/binance-pay/api-order-refund-query)
- [Wallet Balance Query V2](https://developers.binance.com/docs/binance-pay/api-balance-query-v2)

This integration complies with the [protocol rules](https://developers.binance.com/docs/binance-pay/api-common#protocol-rules) and generates the [requests headers](https://developers.binance.com/docs/binance-pay/api-common#request-header) as specified by Binance.

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

[](#installation)

To start using the integration in your project you have to:

1. Install the composer package using `composer require persiscal/binance`.
2. Configure your .env with the [.env](/src/.env) variables, replacing the default **BINANCE\_KEY** and **BINANCE\_SECRET** with your [Binance C2B credentials](https://developers.binance.com/docs/binance-pay/authentication).
3. Configure your web routes as in [the web routes](src/routes/web.php).
4. (Optional) Configure the [binance-api](src/config/binance-api.php) **successRouteName**, **cancelRouteName** and **webhookRouteName** if needed.

Testing
-------

[](#testing)

This package contains two commands.

The first one will return the balance of the account.

```
php artisan binance:get-balance

```

The latter one may help to test and troubleshoot the creation, querying and closing of a test order.

```
php artisan binance:test-order

```

Support
-------

[](#support)

If you're having an issue or you find a bug, feel free to send me an email to .

Roadmap
-------

[](#roadmap)

- [Webhook signature verification](https://developers.binance.com/docs/binance-pay/webhook-common#verify-the-signature)
- [Webhook order verification](https://developers.binance.com/docs/binance-pay/order-notification)
- [Refund order verification](https://developers.binance.com/docs/binance-pay/refund-order-notification)

Contributing
------------

[](#contributing)

Please refer to each project's style and contribution guidelines for submitting patches and additions. In general, we follow the "fork-and-pull" Git workflow.

1. Fork the repo on GitLab
2. Clone the project to your own machine
3. Commit changes to your own branch
4. Push your work back up to your fork
5. Submit a Pull request so that we can review your changes

NOTE: Be sure to merge the latest from "upstream" before making a pull request!

Authors
-------

[](#authors)

- [Gaston Campana Piarrou](https://github.com/gcpiarrou) - Member of [Persiscal](https://www.persiscal.com/)

Aknowledgement
--------------

[](#aknowledgement)

- Nonce string generation made by [Monyancha](https://github.com/Monyancha/binance-pay-api-php-laravel-curl)
- HandlesResponseErrors trait inspired on [TechTailor](https://github.com/TechTailor/Laravel-Binance-Api)

License
-------

[](#license)

The MIT License (MIT). Please see [License File](https://gitlab.com/gastoncampana/laravel-binance-c2b/-/blob/main/LICENSE) for more information.

###  Health Score

16

—

LowBetter than 5% of packages

Maintenance20

Infrequent updates — may be unmaintained

Popularity6

Limited adoption so far

Community10

Small or concentrated contributor base

Maturity24

Early-stage or recently created project

 Bus Factor1

Top contributor holds 80.6% 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/bd6c886b06094ef45c12f07ad8b890e1dbbcb78c557a81a20476816fd17f3e5a?d=identicon)[gcpiarrou](/maintainers/gcpiarrou)

---

Top Contributors

[![gcpiarrou](https://avatars.githubusercontent.com/u/77220282?v=4)](https://github.com/gcpiarrou "gcpiarrou (25 commits)")[![gastoncampana](https://avatars.githubusercontent.com/u/130377343?v=4)](https://github.com/gastoncampana "gastoncampana (6 commits)")

### Embed Badge

![Health badge](/badges/persiscal-binance/health.svg)

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

###  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)
