persiscal / binance
Binance Merchant Acquiring (C2B) integration made for Laravel 8.
Requires
- nesbot/carbon: ^2.64.0
This package is auto-updated.
Last update: 2025-08-21 05:43:21 UTC
README
Laravel Binance C2B integration
Binance Merchant Acquiring (C2B) integration made for Laravel 8.
Getting started
This integration covers the next API functions:
This integration complies with the protocol rules and generates the requests headers as specified by Binance.
Installation
To start using the integration in your project you have to:
- Install the composer package using
composer require persiscal/binance
. - Configure your .env with the .env variables, replacing the default BINANCE_KEY and BINANCE_SECRET with your Binance C2B credentials.
- Configure your web routes as in the web routes.
- (Optional) Configure the binance-api successRouteName, cancelRouteName and webhookRouteName if needed.
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
If you're having an issue or you find a bug, feel free to send me an email to gcampana@persiscal.com.
Roadmap
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.
- Fork the repo on GitLab
- Clone the project to your own machine
- Commit changes to your own branch
- Push your work back up to your fork
- 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
- Gaston Campana Piarrou - Member of Persiscal
Aknowledgement
- Nonce string generation made by Monyancha
- HandlesResponseErrors trait inspired on TechTailor
License
The MIT License (MIT). Please see License File for more information.