Date: 12/08/2022 - Upvotes : 472 - Words : 432
SuperHive 0.4.2 Developer's update
<p>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 <a href="https://github.com/fkosmala/superhive"><strong>SuperHive</strong></a>.</p>
<p><img src="https://images.ecency.com/DQmXBiCbcnv1FaAdRMFjm6eQWnftThuKvXvUHJVNvVj4qvY/logosuperhive.png" alt="SuperHive logo" /></p>
<h2>PSR coding standards</h2>
<p>Every line of code from <a href="https://github.com/fkosmala/superhive"><strong>SuperHive</strong></a> is compliant with PSR-1, PSR-2 and PSR-12 standards from <a href="https://www.php-fig.org/">PHP-FIG</a>. PSR means PHP Standards Recommendations and these standards is here to produce a readable and good code in PHP.</p>
<p>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:</p>
<pre><code class="language-bash">composer psr
</code></pre>
<h2>PHP Skeleton Package</h2>
<p>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.</p>
<p>You can find more information on the <a href="https://github.com/php-pds/skeleton">php-pds github</a> repository and I use these rules inside the project to make the development easier for new contributors. <a href="https://github.com/fkosmala/superhive"><strong>SuperHive</strong></a> installation is now bundled with a command to check the PDS standards :</p>
<pre><code class="language-bash">composer pds
</code></pre>
<h2>DocBlocks</h2>
<p>Yes, it's time! SuperHive ow includes DocBlocks to generate the developer documentation with tools like <a href="https://www.phpdoc.org/">PHPDocumentor</a>. If you find some missing blocks or some new things to add, just add an issue in the <a href="https://github.com/fkosmala/superhive/issues">SuperHive GitHub Issues page</a> or fork the project, update the code ad made a pull request.</p>
<h2>New PHP Lib for HIVE</h2>
<p>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!</p>
<p>Please welcome the <a href="https://github.com/better-bc/hive-toolbox-php"><strong>hive-toolbox-php</strong></a> ! 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, ....)</p>
<p>About <a href="https://github.com/fkosmala/superhive"><strong>SuperHive</strong></a>, I just remove the old libs and convert all the code to the new <a href="https://github.com/better-bc/hive-toolbox-php"><strong>hive-toolbox-php</strong></a> . If you see some problems, just comment or add a new issue.</p>
<h2>Better installation</h2>
<p><a href="https://github.com/fkosmala/superhive"><strong>SuperHive</strong></a> have a new Install controller only made for that. It's a way faster, easier and more secure.</p>
<p>I've also fix two bug in the installation script.</p>
<hr />
<p>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 <a href="https://discord.gg/u2qfuaFMwt">Discord server</a> or just write a comment here!</p>
<p>I hope you enjoy tihs update. Have a nice day!</p>