PHPackages                             maslakoff/php-etherscan-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. maslakoff/php-etherscan-api

ActiveLibrary[API Development](/categories/api)

maslakoff/php-etherscan-api
===========================

PHP client for the Etherscan API

1.3.10(3y ago)2922.7k—1.2%33[1 issues](https://github.com/maslakoff/php-etherscan-api/issues)MITPHPPHP ^5.6 || ^7.0 || ^8.0CI failing

Since Jun 21Pushed 1y ago4 watchersCompare

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

READMEChangelogDependencies (3)Versions (18)Used By (0)

EtherScan PHP API
=================

[](#etherscan-php-api)

PHP wrapper for the EtherScan API

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

[Official API Documentation](https://docs.etherscan.io)

[Create API Key (optional)](https://etherscan.io/myapikey)

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

[](#requirements)

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

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

[](#installation)

To install EtherScan PHP API package you can run command:

```
composer require maslakoff/php-etherscan-api:dev-master

```

Usage
-----

[](#usage)

Mainnet

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

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

[](#for-testnet-usage)

Supported:

- goerli
- ropsten
- kovan
- rinkeby

```
$client = new \Etherscan\Client('Y3U3GMFC8P545CFWRU4TET8MY1K79YDZ3V', EtherscanAPIConf::TESTNET_RINKEBY);
$client->api('account')->balance('0x43406D1baAE11a950DE734DAE4079A3C9Eb48DAf');
```

For Binance Smart Chain (BSC) usage
-----------------------------------

[](#for-binance-smart-chain-bsc-usage)

In order to query the BSC you need a different API. You can obtain it here: . Here the call:

```
$bsc_client = new \Etherscan\Client('Y3U3GMFC8P545CFWRU4TET8MY1K79YDZ3V', EtherscanAPIConf::NET_BSC);
$bsc_client->api('account')->balance('0x43406D1baAE11a950DE734DAE4079A3C9Eb48DAf');
```

###  Health Score

42

—

FairBetter than 90% of packages

Maintenance28

Infrequent updates — may be unmaintained

Popularity42

Moderate usage in the ecosystem

Community21

Small or concentrated contributor base

Maturity65

Established project with proven stability

 Bus Factor1

Top contributor holds 76.9% 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 ~29 days

Recently: every ~71 days

Total

16

Last Release

1360d ago

Major Versions

0.9.0 → 1.0.02021-09-27

### Community

Maintainers

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

---

Top Contributors

[![maslakoff](https://avatars.githubusercontent.com/u/8482075?v=4)](https://github.com/maslakoff "maslakoff (50 commits)")[![marciuz](https://avatars.githubusercontent.com/u/1354643?v=4)](https://github.com/marciuz "marciuz (5 commits)")[![w3spi5](https://avatars.githubusercontent.com/u/8407711?v=4)](https://github.com/w3spi5 "w3spi5 (4 commits)")[![andrija-naglic](https://avatars.githubusercontent.com/u/3306507?v=4)](https://github.com/andrija-naglic "andrija-naglic (2 commits)")[![msm-masahiko-koike](https://avatars.githubusercontent.com/u/78339896?v=4)](https://github.com/msm-masahiko-koike "msm-masahiko-koike (2 commits)")[![kasra73](https://avatars.githubusercontent.com/u/7995238?v=4)](https://github.com/kasra73 "kasra73 (1 commits)")[![stoll](https://avatars.githubusercontent.com/u/4408878?v=4)](https://github.com/stoll "stoll (1 commits)")

---

Tags

apiethereumetherscanEtherScan.io

###  Code Quality

TestsPHPUnit

### Embed Badge

![Health badge](/badges/maslakoff-php-etherscan-api/health.svg)

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

###  Alternatives

[coinpaymentsnet/coinpayments-php

A PHP wrapper for the CoinPayments.net v1 API.

55126.2k](/packages/coinpaymentsnet-coinpayments-php)[shoppy/shoppy-php

Shoppy PHP Library

1813.3k](/packages/shoppy-shoppy-php)

PHPackages © 2026

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