An open API service indexing awesome lists of open source software.

https://github.com/numairawan/ethplorer-api-php

🚀 Ethplorer API PHP Library: Multiple keys, no dependencies, blazing fast! Get data from Ethplorer.io with ease.
https://github.com/numairawan/ethplorer-api-php

blockchain blockchain-api ethereum ethereum-api etherscan etherscan-api etherscan-client etherscan-io etherscan-solidity ethplorer

Last synced: 2 months ago
JSON representation

🚀 Ethplorer API PHP Library: Multiple keys, no dependencies, blazing fast! Get data from Ethplorer.io with ease.

Awesome Lists containing this project

README

          


ethplorer-api-php


Total Hits
Total Downloads
Latest Version
License

------

# Ethplorer API PHP Library

🚀 This PHP library allows you to interact with the Ethplorer.io API. It's designed for ease of use and offers the following features:

- 🔄 Support for multiple API keys to bypass rate limits on Ethplorer's free account API.
- 📦 Requires no external dependencies.
- âš¡ Delivers high-speed performance.
- 🔑 Offers two multi-key modes: sequential and random.

Get started quickly with Ethplorer API integration using this library.

## Installation

To install the library, you can use [Composer](https://getcomposer.org/) and run the following command:

```bash
composer require numairawan/ethplorer-api-php
```

### Usage
To interact with ethplorer.io, follow these simple steps:

```php
use NumairAwan\EthplorerApi\EthplorerApi;

// Example usage:
$apiKeys = ["YOUR_API_KEY_1", "YOUR_API_KEY_2"];

// By default it will use sequential mode with multi-keys for each request
// pass 'true' in 2nd parameter to use random api for each request.

// new EthplorerApi($apiKeys, true);
$ethplorer = new EthplorerApi($apiKeys);

// Fetch last block data
$lastBlockData = $ethplorer->getLastBlock();
var_dump($lastBlockData);
```

### Contributing
Contributions are welcome! Feel free to fork the repository and submit pull requests as well.

### License
This project is licensed under the **[MIT license](https://opensource.org/licenses/MIT)**.

## Connect with Me

Feel free to reach out to me for any project-related queries or collaborations. I'm always happy to connect and discuss ideas!

[Telegram](https://t.me/NumairAwan)
[WhatsApp](https://wa.me/+923164700904)