PHP code example of nickbeen / nintendo-blocks-converter

1. Go to this page and download the library: Download nickbeen/nintendo-blocks-converter library. Choose the download type require.

2. Extract the ZIP file and open the index.php.

3. Add this code to the index.php.
    
        
<?php
require_once('vendor/autoload.php');

/* Start to develop here. Best regards https://php-download.com/ */

    

nickbeen / nintendo-blocks-converter example snippets


$blocks = new NintendoConverter(blocks: 80);

return $blocks->toMegabytes(); // returns 10

$megabytes = new NintendoConverter(megabytes: 80);

return $megabytes->toBlocks(); // returns 640