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

in HiveDevslast year (edited)

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

Introduction

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

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

Sort:  

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

Super useful! Great work, well done!

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.

!LUV

Follow me

LOL
Why would I do that?

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

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🥳🍀

Thanks for your contribution :)

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.

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.

Nice job! 👍

Good job on this! I hope this will attract many developers to do good things on Hive! 😀

Always building great things for Hive! ♥️


~~~ embed:1608603615152988160 twitter metadata:MjUyMTU3MzczMHx8aHR0cHM6Ly90d2l0dGVyLmNvbS8yNTIxNTczNzMwL3N0YXR1cy8xNjA4NjAzNjE1MTUyOTg4MTYwfA== ~~~
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.

🍕 PIZZA !
@bambukah! The Hive.Pizza team manually upvoted your post.

Join us in Discord!

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

$WINE


Congratulations, @theguruasia You Successfully Shared 0.800 WINEX With @bambukah.
You Earned 0.800 WINEX As Curation Reward.
You Utilized 4/4 Successful Calls.

wine_logo


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


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

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