PHPackages                             w3spi5/php-bscscan-api - 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. w3spi5/php-bscscan-api

ActiveLibrary[API Development](/categories/api)

w3spi5/php-bscscan-api
======================

PHP client for the Bscscan API

0.9.0(4y ago)11.2k4MITPHPPHP ^5.6 || ^7.0 || ^8.0

Since Feb 18Pushed 4y ago1 watchersCompare

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

READMEChangelog (1)Dependencies (3)Versions (2)Used By (0)

Bscscan PHP API
===============

[](#bscscan-php-api)

PHP wrapper for the Bscscan API

[![License: MIT](https://camo.githubusercontent.com/784362b26e4b3546254f1893e778ba64616e362bd6ac791991d2c9e880a3a64e/68747470733a2f2f696d672e736869656c64732e696f2f62616467652f4c6963656e73652d4d49542d677265656e2e737667)](https://opensource.org/licenses/MIT)

[Official API Documentation](https://docs.bscscan.com)

[Create API Key (optional)](https://bscscan.com/myapikey)

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

[](#requirements)

The minimum requirement by Bscscan API is that your Web server supports PHP 5.6.

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

[](#installation)

To install Bscscan PHP API package you can run command:

```
composer require w3spi5/php-bscscan-api:dev-master

```

Usage
-----

[](#usage)

Mainnet

```
$client = new \Bscscan\Client('Y3U3GMFC8P545CFWRU4TET8MY1K79YDZ3V');
$client->api('account')->balance('0x43406D1baAE11a950DE734DAE4079A3C9Eb48DAf');
```

For testnet usage
-----------------

[](#for-testnet-usage)

Supported:

- Testnet

```
$client = new \Bscscan\Client('Y3U3GMFC8P545CFWRU4TET8MY1K79YDZ3V', BscscanAPIConf::TESTNET);
$client->api('account')->balance('0x43406D1baAE11a950DE734DAE4079A3C9Eb48DAf');
```

Pull requests are welcome
-------------------------

[](#pull-requests-are-welcome)

> This package was adapted from [Maslakou Ihar](https://github.com/maslakoff)'s excellent package called [php-etherscan-api](https://github.com/maslakoff/php-etherscan-api) (that I contributed to). Despite all the care taken, it is possible that there are errors due to the copy of the code. Feel free to submit a pull request if needed.

###  Health Score

25

—

LowBetter than 37% of packages

Maintenance20

Infrequent updates — may be unmaintained

Popularity19

Limited adoption so far

Community9

Small or concentrated contributor base

Maturity44

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

Unknown

Total

1

Last Release

1550d ago

### Community

Maintainers

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

---

Top Contributors

[![w3spi5](https://avatars.githubusercontent.com/u/8407711?v=4)](https://github.com/w3spi5 "w3spi5 (5 commits)")

---

Tags

apiBEP20bnbbscscanbep2ierc20bscscan.com

###  Code Quality

TestsPHPUnit

### Embed Badge

![Health badge](/badges/w3spi5-php-bscscan-api/health.svg)

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

###  Alternatives

[m165437/laravel-blueprint-docs

API Blueprint Renderer for Laravel

22779.0k](/packages/m165437-laravel-blueprint-docs)[fenguoz/bsc-php

Support Binance's BNB and BEP20, which include functions such as address creation, balance query, transaction transfer, query the latest blockchain, query information based on the blockchain, and query information based on the transaction hash

4720.9k](/packages/fenguoz-bsc-php)

PHPackages © 2026

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