Social worker, developer, author, maker, and more !

Date: 12/29/2022 - Upvotes : 729 - Words : 595

NEW: HIVE PHP Lib, the "Enterprise-class" PHP library to create projects.

Ladies and gentlemen, please welcome the best PHP way to interact with our favorite blockchain!


When you code on PHP, it's most difficult to work with blockchains. For Hive, there are 3 libs for that:

  • Hive-php, by @mahdiyari, with which you can interact only in "Raw mode" (and you need another external library),
  • Php-hive-tools, made by @dragosroua, which is not up to date,
  • Php-he-tools, by me, to only interact with HiveEngine layer.

All these libs are without good documentation, with no standardized code and have some defects. That's why I wish to develop a library which can be used with Hive and HiveEngine. This lib need to have a really readable code, many comments, some examples, and have the "Enterprise-class" standards.

Now, it's over, and only one library will be used for that: Hive-php-lib


How can I do that?

First of all, the code of Hive-php-lib is fully readable by a beginner. We need to attract more developers into HIVE blockchain and the lib is easy to understand. I use the well-known PSR-1 & PSR-12 coding standards for that. The code is written to be clear and easy to use.

If the code is not understandable, I made DocBlocks for every function. Just execute phpdoc in the lib folder to have a full featured developer documentation.

Don't know where is a function? Don't panic, Hive-php-lib is bundled in the PHP-PDS format, so all the PHP code is in /src/ folder, and in an easy way.

Hive-php-lib is also upgradeable in the easiest way: composer update give you the last version of this awesome library.

All these things made Hive-php-lib ready to use in any big project in production mode. Of course, all is fully open-source (MIT Licence).


How can you use this lib?

Want to create a project with Hive-php-lib? You can check the official HIVE Developer Portal because I started to write some tutorials to have the best start with this lib !

If you to go futher without waiting for other tutorials, you'll find the entire list of methods for HIVE and HiveEngine in the methods.md file in /docs/ folder.

Some examples are in /resources/examples/ folder too and the other ones will be added very soon.

What's next?

For Hive-php-lib, it's just the beginning. I want to include some shortcuts functions to have data in an easier way. (e.g. getPublicKeys("bambukah") to have an array with all my public keys.)

I also want to add all keys & transactions functions, but without any external library (like ext-gmp). Many users cannot install this type of lib on their PHP instances and I want to use this lib everywhere.

After that, I will write more tutorials that will be included into the official HIVE Developer Portal (Go check this site and the AppBase API in Condenser chapter to discover the very powerful Hive API).

To finish, I want to write some units tests to have the best quality library. Updates will take place soon for each new HardFork or for any fix.

If you want to talk with me or the team behind this project, come in my Discord server or follow me on my Twitter account

Of course, if you have any feedback or question, feel free to ask in comments section! As usual, If you like my work, please up-vote and re-blog this post, it helps me a lot.

Thank you very much and have a nice day!

Image par Michael Schwarzenberger de Pixabay

Tags : hive hivedevs php library project beginner hive-139531

Vote for this article


Comments :

pravesh0 :

WOW! New libraries... great job. While I don't understand everything but I can sense positive developments for our beloved blockchain. Thank you for your work and dedication towards improving the Hive ecosystem.


rosecane :

Looks interesting and something good, best of luck !!!!

queenstarr :

Awesome. Bambukah always finding ways to make hive better. I'm not so Techie, but this sounds like a much welcome development on Hive. All the bestπŸ₯³πŸ€

poshtoken :

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

engrave :

Thanks for your contribution :)

pizzabot :
πŸ• PIZZA ! @bambukah! The Hive.Pizza team manually upvoted your post.

Join us in Discord!

ecency :

Yay! πŸ€—
Your content has been boosted with Ecency Points, by @bambukah.
Use Ecency daily to boost your growth on platform!

Support Ecency
Vote for new Proposal
Delegate HP and earn more

seckorama :

That's great news. PHP is still a very popular language and no doubt that will be useful with Hive!

niallon11 :

I'm not a coder but this sounds like a very positive step for the blockchain.

Anything that encourages new projects and development is a good sign.

Well done.

thekittygirl :

Good job on this! I hope this will attract many developers to do good things on Hive! πŸ˜€

melinda010100 :

Always building great things for Hive! β™₯️

mintrawa :

Nice job! πŸ‘

theguruasia :


fernandoylet :

I'm starting a new PHP project as shown at https://ecency.com/hive-169321/@fernandoylet/esp-or-eng-programacion-para and added a link to this publication in the comments, in case a PHP programmer is interested.

hivebuzz :

Congratulations @bambukah! You have completed the following achievement on the Hive blockchain And have been rewarded with New badge(s)

You distributed more than 44000 upvotes.
Your next target is to reach 45000 upvotes.

You can view your badges on your board and compare yourself to others in the Ranking If you no longer want to receive notifications, reply to this comment with the word STOP

Check out our last posts:

Be ready for the first Hive Power Up Month of the year 2023!
Update For Regular Content Creators - New Yearly Author Badge
PUD - PUH - PUM - It's all about Power Up!
The Hive Gamification Proposal Renewal
bombus :

Super useful! Great work, well done!