numairawan/ethplorer-api-php

PHP library for Ethplorer.io API. Supports multiple keys for rate limits, no dependencies, and offers fast performance.

v1.0.0 2023-09-29 21:39 UTC

This package is auto-updated.

Last update: 2024-10-30 00:21:07 UTC


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 and run the following command:

composer require numairawan/ethplorer-api-php

Usage

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

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.

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 WhatsApp