PHPackages                             rumd3x/php-brainfuck - 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. rumd3x/php-brainfuck

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

rumd3x/php-brainfuck
====================

A nice PHP Utility made out of boredom for encoding a string into brainfuck code and vice-versa.

1.1.0(2y ago)2272MITPHPPHP &gt;=5.5

Since Dec 2Pushed 2y ago1 watchersCompare

[ Source](https://github.com/rumd3x/php-brainfuck)[ Packagist](https://packagist.org/packages/rumd3x/php-brainfuck)[ RSS](/packages/rumd3x-php-brainfuck/feed)WikiDiscussions master Synced 2mo ago

READMEChangelog (2)DependenciesVersions (3)Used By (0)

php-brainfuck
=============

[](#php-brainfuck)

A nice PHP Utility made out of boredom for encoding a string into brainfuck code and vice-versa.

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

[](#installation)

To install via composer just run

```
  composer require rumd3x/php-brainfuck
```

Usage
-----

[](#usage)

### Encoding

[](#encoding)

```
use Rumd3x\Brainfuck\Brainfuck;

echo Brainfuck::encode("Hello World!");
// outputs: ++++++++++[>+++++++>++++++++++>+++++++++++>+++++++++++>+++++++++++>+++>+++++++++>+++++++++++>+++++++++++>+++++++++++>++++++++++>++++++.
```

There's also a second a third optional parameters for the encoding.

The second is for replacing non-ASCII characters.

And the third is for generating an minified or pretty-printed version of the code.

```
use Rumd3x\Brainfuck\Brainfuck;

echo Brainfuck::encode("Some ASCII: ABC+ŤĎ and some non-ASCII: Ąąśćł.'", true); // will replace non-ascii with their ascii counterpart
echo Brainfuck::encode("Prettifying'", false, true); // will output pretty printed brainfuck code
```

### Decoding

[](#decoding)

```
use Rumd3x\Brainfuck\Brainfuck;

echo Brainfuck::decode("++++++++++[>+++++++>++++++++++>+++++++++++>+++++++++++>+++++++++++>+++>+++++++++>+++++++++++>+++++++++++>+++++++++++>++++++++++>++++++.");
// outputs: Hello World!
```

Happy brainfucking!

###  Health Score

27

—

LowBetter than 49% of packages

Maintenance20

Infrequent updates — may be unmaintained

Popularity11

Limited adoption so far

Community11

Small or concentrated contributor base

Maturity57

Maturing project, gaining track record

 Bus Factor1

Top contributor holds 94.1% 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 ~1848 days

Total

2

Last Release

872d ago

### Community

Maintainers

![](https://www.gravatar.com/avatar/3a9bb5384975b87cebcef2b7642e2b5b3b79d0a3be614fdcbbe008f5b6ca3c08?d=identicon)[edmur](/maintainers/edmur)

---

Top Contributors

[![rumd3x](https://avatars.githubusercontent.com/u/12579932?v=4)](https://github.com/rumd3x "rumd3x (16 commits)")[![Wouter0100](https://avatars.githubusercontent.com/u/864520?v=4)](https://github.com/Wouter0100 "Wouter0100 (1 commits)")

---

Tags

brainfuckdecodeencodephp

### Embed Badge

![Health badge](/badges/rumd3x-php-brainfuck/health.svg)

```
[![Health](https://phpackages.com/badges/rumd3x-php-brainfuck/health.svg)](https://phpackages.com/packages/rumd3x-php-brainfuck)
```

PHPackages © 2026

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