SuperHive 0.4.2 Developer's update

@superhive · 2022-12-08 16:11 · HiveDevs

Hello everyone ! It's been a long time, hasn't it ? And this time no new feature but a great refactor about the entire base of SuperHive.

SuperHive logo

PSR coding standards

Every line of code from SuperHive is compliant with PSR-1, PSR-2 and PSR-12 standards from PHP-FIG. PSR means PHP Standards Recommendations and these standards is here to produce a readable and good code in PHP.

SuperHive is now fully compliant with these rules! The code is now more readable, and many bugs will be avoid thanks to that. When you install SuperHive, you will have a new Composer command to check if all PHP files are compliant:

composer psr

PHP Skeleton Package

Do you know there is also another standard for package folders in PHP projects ? It's called PHP-PDS and it's a standard for every developer who want to create project with the same logic about folders.

You can find more information on the php-pds github repository and I use these rules inside the project to make the development easier for new contributors. SuperHive installation is now bundled with a command to check the PDS standards :

composer pds

DocBlocks

Yes, it's time! SuperHive ow includes DocBlocks to generate the developer documentation with tools like PHPDocumentor. If you find some missing blocks or some new things to add, just add an issue in the SuperHive GitHub Issues page or fork the project, update the code ad made a pull request.

New PHP Lib for HIVE

Some people use php-hive-tools or hive-php but I create another lib which contains everything to interact with HIVE and HiveEngine in the same library!

Please welcome the hive-toolbox-php ! It's very easy to use. Install it with Composer, Create a new object and interact with it ! I'll update this lib in the future to add many more features.(Hive Egine token management, HIVE connection, transfers, ....)

About SuperHive, I just remove the old libs and convert all the code to the new hive-toolbox-php . If you see some problems, just comment or add a new issue.

Better installation

SuperHive have a new Install controller only made for that. It's a way faster, easier and more secure.

I've also fix two bug in the installation script.


I think it's really nice for the future of this project. To finish this year, I'll try to fix many bugs and made the things easier for new contributors. Of course, if you have any feedbacks or request, feel free to join the Discord server or just write a comment here!

I hope you enjoy tihs update. Have a nice day!

#hive-139531 #hivedevs #update #dev #diyhub #blog #standards #engine #php #tribes
Payout: 0.000 HBD
Votes: 472
More interactions (upvote, reblog, reply) coming soon.