Introducing PHP HiveEngine Tools, your PHP companion to work with HiveEngine API

(edited)

As you know, my @superhive project is coded with PHP. I had a problem with the wallet page, I needed to interact with HiveEngine API, but no PHP library existed.

That's why I've started to develop a PHP lib for that : php-he-tools !

Code image from Pixabay by [Boskampi](https://pixabay.com/photos/programmation-html-css-javascript-1873854/)

What is it?

PHP HiveEngine Tools is a collection of methods made to interact with HiveEngine API.

Of course, this lib is released under MIT license, and it's fully open-source. You can find it on the official Github repo.

Mainly inspired by @dragosroua work (for his php-hive-tools library), I want to create methods to use HiveEngine API easily, without compromise.

How to use it?

If you have a PHP project which need this, just install this lib with Composer :

composer require fkosmala/php-he-tools

Next, just include the Composer's autoload in your PHP file and call the HiveEngine API :

require __DIR__ . '/vendor/autoload.php';
use FKosmala\PHPHeTools\HeApi as HeApi;

You can create a configuration array if you want to change settings :

$config = [
"debug" => false,
'throw_exception' => false,
"heNode" => "api.hive-engine.com/rpc"
];

Last step, initiate the lib :

$api = new HeApi($config);

Mission successfully completed! You can use all the methods of this lib to your project! If you need a list, you can check the methods.md file.

If you need a small file to test, there is an example file in the example/ folder of the repo

Conclusion

This library is in development state and there are only few methods right now, so I will create methods over time. If you need to add something into this lib, you have three choices :

  • Ask me in comments
  • Fork the php-he-tools repo, add your feature or methods, and make a pull request
  • Add a ticket into the Issues page of the repo.

If you like my work, please upvote or reblog this post, consider to donate, Add a comment or join my Discord server to talk with me.

Have a nice day!


16.09039260 BEE
25 comments

Great job @bambukah!

0.02369941 BEE

G'morning Florent, I sure wish I understood this stuff, but I don't.
So I will support you just the same.

ā†‘Upvotedā†‘andā†Rebloggedā†’

0.02225118 BEE

!LUV
!WINE

0.00007098 BEE


Congratulations, @wesphilbin You Successfully Shared 0.100 WINEX With @jerrytsuseer.
You Earned 0.100 WINEX As Curation Reward.
You Utilized 1/5 Successful Calls.

wine_logo


Contact Us : WINEX Token Discord Channel
WINEX Current Market Price : 0.168


Swap Your Hive <=> Swap.Hive With Industry Lowest Fee (0.1%) : Click This Link
Read Latest Updates Or Contact Us

0.00006811 BEE
0.00006953 BEE

Hey Wessie pooh!

0.00006618 BEE

Congratulations, glad to see my work is still useful šŸ™‚.

0.02193654 BEE

Congrats on your efforts. Better and better! šŸ‘ŒšŸ˜Ž

0.02181946 BEE

This is very cool. I am an old php programmer who has been getting involved in some dev work on Hive (backend, using python), and was going to start learning node.js to be able to do frontend work. This will hopefully let me use my old skills to work with Hive.

Thanks for working on this and better yet sharing it!

!LOLZ

0.02168175 BEE

Bruce Lee was fast.
But not as fast as his brother Sudden Lee.

Credit: manuvert
@bambukah, I sent you an $LOLZ on behalf of @captaincryptic
Use the !LOL or !LOLZ command to share a joke and an $LOLZ
(1/10)

0.00006341 BEE

Great to see new integration tools with the Hive blockchain, this is a necessary step to grow this entire ecosystem.

Posted Using LeoFinance Beta

0.02158607 BEE

Helping Hive grow! Thank you! ā™„ļø

0.02134268 BEE

Thank you for all you do here on our blockchain development side.

@tipu curate

0.02110634 BEE
0E-8 BEE

I love this, I use laravel very well and you have just made this so easy. Thank you so muc

0.02091443 BEE

Dont understand much of these things but am sure, youre doing great work for our chain :-)

0.02032862 BEE

Thanks for such thorough review

0.01974517 BEE

Rocket science to me but many thanks for your work for Hive!

Posted Using LeoFinance Beta

0.01949179 BEE

Great, I'll use it

!PIZZA !hivebits

0.01912334 BEE

Success! You mined .9 HBIT & the user you replied to received .1 HBIT on your behalf. mine | wallet | market | tools | discord | subscribe | <>< daily

The community has spoken. The smallest HBIT unit is the quark!

0.00005228 BEE

!PIZZA deserving work

Posted Using LeoFinance Beta

0.01881462 BEE

Wow wonderful tool and development in the hive ecosystem. You have done a great job.

0.01873933 BEE

@bambukah

You continue to spread positive energy, and elevate the awesomesauce! As many have said, I don't know a lot about this. But I do know you! So... you have my thanks, as well as support!

!LUV
!WINE
!hivebits

0.01829456 BEE


Congratulations, @wesphilbin You Successfully Shared 0.200 WINEX With @bambukah.
You Earned 0.200 WINEX As Curation Reward.
You Utilized 2/5 Successful Calls.

wine_logo


Contact Us : WINEX Token Discord Channel
WINEX Current Market Price : 0.168


Swap Your Hive <=> Swap.Hive With Industry Lowest Fee (0.1%) : Click This Link
Read Latest Updates Or Contact Us

0E-8 BEE

Success! You mined .9 HBIT & the user you replied to received .1 HBIT on your behalf. mine | wallet | market | tools | discord | subscribe | <>< daily

The community has spoken. The smallest HBIT unit is the quark!

0E-8 BEE

Great work!

0.01796374 BEE

https://twitter.com/joanstewart1/status/1550062324395958272
The rewards earned on this comment will go directly to the people( @joanstewart ) sharing the post on Twitter as long as they are registered with @poshtoken. Sign up at https://hiveposh.com.

0.00009733 BEE

@tipu curate
$PIMP

0.00004679 BEE


You must be killin' it out here!
@wesphilbin just slapped you with 1.000 PIMP, @bambukah.
You earned 1.000 PIMP for the strong hand.
They're getting a workout and slapped 1/1 possible people today.

pimp_logo


Read about some PIMP Shit or Look for the PIMP District

0E-8 BEE

Amazing.

On @hiveland.dapp I am using PHP to get information from Hive Engine blocks.

Can you share the repository link to check if I can contribute with something?

Posted Using LeoFinance Beta

0.00004518 BEE

It's in every links about php-he tools, but here's the link : https://github.com/fkosmala/php-he-tools :)
Of course, you can contribute in every way you want :)

0.00004508 BEE

Thanks a lot

Posted Using LeoFinance Beta

0.00004457 BEE

Pour vous remercier de votre dƩlƩgation BEE

!PIZZA
!CTP
!PGM
!LUV
!ALIVE

0.00004302 BEE

@token-thx, sorry! You need more to stake more $PIZZA to use this command.

The minimum requirement is 20.0 PIZZA staked.

More $PIZZA is available from Hive-Engine or Tribaldex

0E-8 BEE

@token-thx, sorry! You need more $ALIVE to use this command.

The minimum requirement is 1000.0 ALIVE staked.

More $ALIVE is available from Hive-Engine or Tribaldex

0E-8 BEE

Pour vous remercier de votre dƩlƩgation BEE

!PIZZA
!CTP
!PGM
!LUV
!ALIVE

0.00004216 BEE

Sent 0.1 PGM - 0.1 LVL- 1 STARBITS - 0.05 DEC - 15 SBT tokens to @gestion.alive, @bambukah

remaining commands 8

BUY AND STAKE THE PGM TO SEND A LOT OF TOKENS!

The tokens that the command sends are: 0.1 PGM-0.1 LVL-2.5 BUDS-0.01 MOTA-0.05 DEC-15 SBT-1 STARBITS-[0.00000001 BTC (SWAP.BTC) only if you have 2500 PGM in stake or more ]

5000 PGM IN STAKE = 2x rewards!

image.png
Discord image.png

Support the curation account @ pgm-curator with a delegation 10 HP - 50 HP - 100 HP - 500 HP - 1000 HP

Get potential votes from @ pgm-curator by paying in PGM, here is a guide

I'm a bot, if you want a hand ask @ zottone444


0E-8 BEE

@gestion.alive, sorry! You need more $ALIVE to use this command.

The minimum requirement is 1000.0 ALIVE staked.

More $ALIVE is available from Hive-Engine or Tribaldex

0E-8 BEE

Your content has been voted as a part of Encouragement program. Keep up the good work!

Use Ecency daily to boost your growth on platform!

Support Ecency
Vote for new Proposal
Delegate HP and earn more

0E-8 BEE
(edited)

PIZZA! PIZZA!

PIZZA Holders sent $PIZZA tips in this post's comments:
cryptothesis tipped bambukah (x1)
@arthursiq5(1/5) tipped @bambukah (x1)

You can now send $PIZZA tips in Discord via tip.cc!

0E-8 BEE

La verdad es un excelente post, me agrado, te dejo mi voto y te sigo,, saludos.

0E-8 BEE