PHPackages                             sdtech/binance-api-laravel - 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. sdtech/binance-api-laravel

ActiveLibrary[API Development](/categories/api)

sdtech/binance-api-laravel
==========================

Integrate Binance API with Laravel Effortlessly

v1.0.1(1y ago)01.0k1MITPHPPHP &gt;=7.0.0

Since Jul 25Pushed 1y ago1 watchersCompare

[ Source](https://github.com/syedbacchu/binance-api-laravel)[ Packagist](https://packagist.org/packages/sdtech/binance-api-laravel)[ RSS](/packages/sdtech-binance-api-laravel/feed)WikiDiscussions main Synced yesterday

READMEChangelog (2)DependenciesVersions (3)Used By (0)

binance-api-laravel | Integrate Binance API with Laravel Effortlessly
=====================================================================

[](#binance-api-laravel--integrate-binance-api-with-laravel-effortlessly)

[![Latest Version](https://camo.githubusercontent.com/c5b6a7a20a14013cb11781379a7ae6ba262aae73b7daa78736f93336492af13f/68747470733a2f2f696d672e736869656c64732e696f2f6769746875622f72656c656173652f737965646261636368752f62696e616e63652d6170692d6c61726176656c2e7376673f7374796c653d666c61742d737175617265)](https://github.com/syedbacchu/binance-api-laravel/releases)[![Issues](https://camo.githubusercontent.com/1765702d386adc7ee7466cfc5f536e932787d2ff4ce12391ef68f5b46dc90a25/68747470733a2f2f696d672e736869656c64732e696f2f6769746875622f6973737565732f737965646261636368752f62696e616e63652d6170692d6c61726176656c2e7376673f7374796c653d666c61742d737175617265)](https://github.com/syedbacchu/binance-api-laravel)[![Stars](https://camo.githubusercontent.com/12a1b392078f586ef1c18e3824fd5b9f78793b9acd543fb4dbd963521dc76bdb/68747470733a2f2f696d672e736869656c64732e696f2f6769746875622f73746172732f737965646261636368752f62696e616e63652d6170692d6c61726176656c2e7376673f7374796c653d736f6369616c)](https://github.com/syedbacchu/binance-api-laravel)[![Stars](https://camo.githubusercontent.com/b385f30635e9b00c974a643445a62b6594070c7883535827f9eecca830ed05cb/68747470733a2f2f696d672e736869656c64732e696f2f6769746875622f666f726b732f737965646261636368752f62696e616e63652d6170692d6c61726176656c3f7374796c653d666c61742d737175617265)](https://github.com/syedbacchu/binance-api-laravel)[![Total Downloads](https://camo.githubusercontent.com/8124713e89ce7170407c4251c3c2154d5dbdbe1ca5ed984d676d10f1b46ee6e7/68747470733a2f2f696d672e736869656c64732e696f2f7061636b61676973742f64742f7364746563682f62696e616e63652d6170692d6c61726176656c2e7376673f7374796c653d666c61742d737175617265)](https://packagist.org/packages/sdtech/binance-api-laravel)

- [About](#about)
- [Requirements](#requirements)
- [Installation](#installation)
- [Configuration](#configuration)
- [Uses](#Uses)

About
-----

[](#about)

This offers a comprehensive integration of the Binance API with Laravel, allowing developers to easily incorporate cryptocurrency trading features into their Laravel applications. It includes extensive documentation, sample codes, and best practices for a seamless and secure setup. The current features are :

- Trading
- Broker Account
- Public Api

Requirements
------------

[](#requirements)

- [Laravel 5.8+](https://laravel.com/docs/installation)
- [PHP ^7](https://www.php.net/)

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

[](#installation)

1. From your projects root folder in terminal run:

```
composer require sdtech/binance-api-laravel
```

2. In config/app.php, need to add this line:

```
'providers' => [
    // Other Service Providers...
    Sdtech\BinanceApiLaravel\Providers\BinanceApiLaravelServiceProviders::class,
],
```

3. Publish the packages views, config file, assets, and language files by running the following from your projects root folder:

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

configuration
-------------

[](#configuration)

1. Go to your config folder, then open "binanceapilaravel.php" file
2. here you must add that info or add the info to your .env file .

```
'BINANCE_API_LIVE_URL' => env('BINANCE_API_LIVE_URL') ?? "https://api.binance.com/api/",
'BINANCE_API_TESTNET_URL' => env('BINANCE_API_TESTNET_URL') ?? "https://testnet.binance.vision/api/",
'BINANCE_WAPI_URL' => env('BINANCE_WAPI_URL') ?? "https://api.binance.com/wapi/",
'BINANCE_SAPI_URL' => env('BINANCE_SAPI_URL') ?? "https://api.binance.com/sapi/",
'BINANCE_FAPI_URL' => env('BINANCE_FAPI_URL') ?? "https://fapi.binance.com/",
'BINANCE_BAPI_URL' => env('BINANCE_BAPI_URL') ?? "https://www.binance.com/bapi/",
'BINANCE_WSS_STREAM_URL' => env('BINANCE_WSS_STREAM_URL') ?? "wss://stream.binance.com:9443/ws/",
'BINANCE_WSS_STREAM_TESTNET_URL' => env('BINANCE_WSS_STREAM_TESTNET_URL') ?? "wss://testnet.binance.vision/ws/",
'BINANCE_API_KEY' => env('BINANCE_API_KEY'),
'BINANCE_API_SECRET_KEY' => env('BINANCE_API_SECRET_KEY'),
'BINANCE_API_TEST_MODE' => env('BINANCE_API_TEST_MODE')
```

Uses
----

[](#uses)

4. We provide a sample code of functionality that will help you to integrate easily

```
use Sdtech\BinanceApiLaravel\Service\BinanceApiLaravelService;

class HomeController extends Controller
{
    public function testBinanceApi(Request $request) {

        $api = new BinanceApiLaravelService();
        $response = $api->price('BNBUSDT'); // get the current BNB price in USDT
        $response2 = $api->orderBook('BNBUSDT',100);  // get the order book data
        return $response;
    }
}
 in the same way you can use other function as well
```

some functions
--------------

[](#some-functions)

- price get the latest price of a symbol

```
$price = $api->price( "BNBUSDT" );
@param STRING symbol mandetory Parameter symbol and symbols cannot be used in combination.
@param STRING symbols optional Examples of accepted format for the symbols parameter: ["BTCUSDT","BNBUSDT"]
@return array with error message or array with symbol price
@throws \Exception

price(string $symbol='BNBUSDT', $symbols=[])
```

- get exchange information

```
ping() // test connectivity
time() // check server time
$symbol = "BNBUSDT";
exchangeInfo($symbol)  // get exchange info
```

###  Health Score

25

—

LowBetter than 35% of packages

Maintenance32

Infrequent updates — may be unmaintained

Popularity17

Limited adoption so far

Community8

Small or concentrated contributor base

Maturity36

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.

###  Release Activity

Cadence

Every ~0 days

Total

2

Last Release

708d ago

### Community

Maintainers

![](https://avatars.githubusercontent.com/u/33843080?v=4)[sdbacchu](/maintainers/sdbacchu)[@sdbacchu](https://github.com/sdbacchu)

---

Top Contributors

[![syedbacchu](https://avatars.githubusercontent.com/u/52558169?v=4)](https://github.com/syedbacchu "syedbacchu (9 commits)")

---

Tags

phpapilaraveltradingbinancebinance-api

### Embed Badge

![Health badge](/badges/sdtech-binance-api-laravel/health.svg)

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

###  Alternatives

[joisarjignesh/bigbluebutton

BigBlueButton Server API Library for Laravel

162155.1k1](/packages/joisarjignesh-bigbluebutton)[jeroen-g/flickr

Modern PHP package to make Flickr API calls. Ships with Laravel implementation.

2563.3k2](/packages/jeroen-g-flickr)[exlo89/laravel-sevdesk-api

A helpful Sevdesk API client for Laravel.

1118.4k](/packages/exlo89-laravel-sevdesk-api)[dystcz/lunar-api

Dystore API layer for Lunar e-commerce package

411.2k3](/packages/dystcz-lunar-api)[yxx/laravel-quick

agile development

145.6k](/packages/yxx-laravel-quick)[gufy/whmcs

WHMCS API for Laravel 5

201.7k](/packages/gufy-whmcs)

PHPackages © 2026

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