Skip to content

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

License

Notifications You must be signed in to change notification settings

numairawan/ethplorer-api-php

Folders and files

NameName
Last commit message
Last commit date

Latest commit

Β 

History

4 Commits
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 

Repository files navigation

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