PHPackages                             nickbeen/nintendo-blocks-converter - PHPackages - PHPackages  [Skip to content](#main-content)[PHPackages](/)[Directory](/)[Categories](/categories)[Trending](/trending)[Leaderboard](/leaderboard)[Changelog](/changelog)[Analyze](/analyze)[Collections](/collections)[Log in](/login)[Sign up](/register)

1. [Directory](/)
2. /
3. [Utility &amp; Helpers](/categories/utility)
4. /
5. nickbeen/nintendo-blocks-converter

ActiveLibrary[Utility &amp; Helpers](/categories/utility)

nickbeen/nintendo-blocks-converter
==================================

Convert Nintendo blocks to Megabytes and vice versa

1.2.0(3y ago)05MITPHPPHP ^8.0CI failing

Since Mar 9Pushed 1w ago1 watchersCompare

[ Source](https://github.com/nickbeen/nintendo-blocks-converter)[ Packagist](https://packagist.org/packages/nickbeen/nintendo-blocks-converter)[ Docs](https://github.com/nickbeen/nintendo-blocks-converter)[ RSS](/packages/nickbeen-nintendo-blocks-converter/feed)WikiDiscussions main Synced yesterday

READMEChangelog (4)Dependencies (1)Versions (6)Used By (0)

Nintendo Blocks Converter
=========================

[](#nintendo-blocks-converter)

[![Latest version](https://camo.githubusercontent.com/bd221307400fb36a02f99185fd2719264553284d1667d7307fcd7f57c66dbf1d/68747470733a2f2f696d672e736869656c64732e696f2f7061636b61676973742f762f6e69636b6265656e2f6e696e74656e646f2d626c6f636b732d636f6e766572746572)](https://packagist.org/packages/nickbeen/nintendo-blocks-converter)[![Build status](https://camo.githubusercontent.com/72b4e71913d7b3502710a32d96efa3521aaf28c4107ff539ff5d13021acb8140/68747470733a2f2f696d672e736869656c64732e696f2f6769746875622f616374696f6e732f776f726b666c6f772f7374617475732f6e69636b6265656e2f6e696e74656e646f2d626c6f636b732d636f6e7665727465722f72756e2d74657374732e796d6c)](https://packagist.org/packages/nickbeen/nintendo-blocks-converter)[![Total downloads](https://camo.githubusercontent.com/905dbd8c82380b26e6e622433382b61b9fbc92e1c481f41c60bac87c77ebaa5e/68747470733a2f2f696d672e736869656c64732e696f2f7061636b61676973742f64742f6e69636b6265656e2f6e696e74656e646f2d626c6f636b732d636f6e766572746572)](https://packagist.org/packages/nickbeen/nintendo-blocks-converter)[![PHP Version](https://camo.githubusercontent.com/514d8d8f6ee85b226a33f25afa409f8cc15e08014b277cefd716d47bfffbdd05/68747470733a2f2f696d672e736869656c64732e696f2f7061636b61676973742f7068702d762f6e69636b6265656e2f6e696e74656e646f2d626c6f636b732d636f6e766572746572)](https://packagist.org/packages/nickbeen/nintendo-blocks-converter)[![License](https://camo.githubusercontent.com/a7ebef5903c13cbfb5eb21d6db57e760e15939b81e2a646488a6bf2c9769ac55/68747470733a2f2f696d672e736869656c64732e696f2f7061636b61676973742f6c2f6e69636b6265656e2f6e696e74656e646f2d626c6f636b732d636f6e766572746572)](https://packagist.org/packages/nickbeen/nintendo-blocks-converter)

With this library you can convert Nintendo blocks to the actual filesize in Megabytes. It's also possible to convert the filesize in Megabytes to Nintendo blocks. No longer need to think twice whether you need to divide or multiply by 8, unless you've memorized 1 Nintendo block equals 1 Megabit.

Nintendo blocks are only applicable to applications for the Nintendo DS, Nintendo Wii and Nintendo 3DS consoles.

Requirements
------------

[](#requirements)

- PHP &gt;= 8.0

Installation
------------

[](#installation)

Install the library into your project with Composer.

```
composer require nickbeen/nintendo-blocks-converter

```

Usage
-----

[](#usage)

Initiate a `NintendoConverter` model with either a specified number of blocks or Megabytes and call the method containing the desired unit to convert to. The library throws a `UnnecessaryCalculationException` when converting blocks to blocks or Megabytes to Megabytes. Implement a try block to handle the exception in your application in the best possible way.

### Blocks to MB

[](#blocks-to-mb)

Convert a specified number of blocks to a filesize in Megabytes.

```
$blocks = new NintendoConverter(blocks: 80);

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

### MB to blocks

[](#mb-to-blocks)

Convert a specified filesize in Megabytes to a number of blocks.

```
$megabytes = new NintendoConverter(megabytes: 80);

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

License
-------

[](#license)

This library is licensed under the MIT License (MIT). See the [LICENSE](LICENSE.md) for more details.

###  Health Score

36

—

LowBetter than 79% of packages

Maintenance64

Regular maintenance activity

Popularity4

Limited adoption so far

Community9

Small or concentrated contributor base

Maturity58

Maturing project, gaining track record

 Bus Factor1

Top contributor holds 86.5% of commits — single point of failure

How is this calculated?**Maintenance (25%)** — Last commit recency, latest release date, and issue-to-star ratio. Uses a 2-year decay window.

**Popularity (30%)** — Total and monthly downloads, GitHub stars, and forks. Logarithmic scaling prevents top-heavy scores.

**Community (15%)** — Contributors, dependents, forks, watchers, and maintainers. Measures real ecosystem engagement.

**Maturity (30%)** — Project age, version count, PHP version support, and release stability.

###  Release Activity

Cadence

Every ~105 days

Total

5

Last Release

1156d ago

### Community

Maintainers

![](https://avatars.githubusercontent.com/u/66799549?v=4)[Nick Been](/maintainers/nickbeen)[@nickbeen](https://github.com/nickbeen)

---

Top Contributors

[![nickbeen](https://avatars.githubusercontent.com/u/66799549?v=4)](https://github.com/nickbeen "nickbeen (32 commits)")[![dependabot[bot]](https://avatars.githubusercontent.com/in/29110?v=4)](https://github.com/dependabot[bot] "dependabot[bot] (5 commits)")

---

Tags

blocksconverternintendophpphpconverterblocksnintendo

###  Code Quality

TestsPHPUnit

### Embed Badge

![Health badge](/badges/nickbeen-nintendo-blocks-converter/health.svg)

```
[![Health](https://phpackages.com/badges/nickbeen-nintendo-blocks-converter/health.svg)](https://phpackages.com/packages/nickbeen-nintendo-blocks-converter)
```

###  Alternatives

[skoyah/unit-converter

A simple tool for converting units of measurement.

132.5k](/packages/skoyah-unit-converter)

PHPackages © 2026

[Directory](/)[Categories](/categories)[Trending](/trending)[Changelog](/changelog)[Analyze](/analyze)
