fkosmala / php-he-tools
Tools to interact with HiveEngine sidechain (HIVE Blockchain)
Requires
- php: >=7.4
This package is auto-updated.
Last update: 2023-11-09 01:20:50 UTC
README
This library is a collection of PHP methods to interact with Hiveengine sidechain. PHP HE Tools is still in development.
This library was mainly inspired by Dragos Roua PHP Hive Tools which made the same, but for HIVE blockchain.
Features
- Use cURL transport layer
- Debug mode for display request and result
- Just cURL and
php-curl
dependency
Installation & usage
Use Composer to install this lib :
composer require fkosmala/php-he-tools
Init Composer into your PHP file and load the API :
require __DIR__ . '/vendor/autoload.php'; use FKosmala\PHPHeTools\HeApi as HeApi;
Don't forget to create the configuration array (needed for queries) :
$config = [ "debug" => false, 'throw_exception' => false, "heNode" => "api2.hive-engine.com/rpc" ];
Init the API
$api = new HeApi($config);
You can now use every methods of PHP-HE-Tools ! All available methods are in methods.md file.
Example
There is a small example page into the example
folder.
Contribute
If you found a bug, please use Issues page. If you want to add amethod / function or feature, just fork this repo, modify the code, test it and made a pull request.
Showcase
List of projects using this library :
- SuperHive, the Web3 blog engine
If you want to add you project into this list, please contact me : contact |AT] florent-kosmala.fr