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

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

dotzero/brainfuck
=================

A PHP implementation of interpreter for Brainfuck

1.1(9y ago)3612[1 PRs](https://github.com/zero-archive/brainfuck-php/pulls)MITPHPPHP &gt;=5.3.0

Since Apr 12Pushed 8y ago1 watchersCompare

[ Source](https://github.com/zero-archive/brainfuck-php)[ Packagist](https://packagist.org/packages/dotzero/brainfuck)[ RSS](/packages/dotzero-brainfuck/feed)WikiDiscussions master Synced 1w ago

READMEChangelogDependencies (1)Versions (3)Used By (0)

PHP Brainfuck interpreter
=========================

[](#php-brainfuck-interpreter)

[![Build Status](https://camo.githubusercontent.com/6a2fb6d301dc349f5ec51e3500a5ed5918c3e65fb3b30950d8b1eebddca6d7d0/68747470733a2f2f7472617669732d63692e6f72672f646f747a65726f2f627261696e6675636b2d7068702e7376673f6272616e63683d6d6173746572)](https://travis-ci.org/dotzero/brainfuck-php)[![Latest Stable Version](https://camo.githubusercontent.com/a0f0a309b22ac377be5f00c76bfc53ce65b43acbe07a2861f306365427177b06/68747470733a2f2f706f7365722e707567782e6f72672f646f747a65726f2f627261696e6675636b2f76657273696f6e)](https://packagist.org/packages/dotzero/brainfuck)[![License](https://camo.githubusercontent.com/b2291b8fffa22d009e0b57553be6ff031a70ad39c7638a6aadd5edbd2cef0286/68747470733a2f2f706f7365722e707567782e6f72672f646f747a65726f2f627261696e6675636b2f6c6963656e7365)](https://packagist.org/packages/dotzero/brainfuck)

This is PHP implementation of interpreter for Brainfuck.

The brainfuck programming language is an esoteric programming language noted for its extreme minimalism. It is a Turing tarpit, designed to challenge and amuse programmers, and is not suitable for practical use.

Usage
-----

[](#usage)

```
$code = +++>+.
EOT;

$bf = new Brainfuck($code);
$bf->run();
```

Install
-------

[](#install)

### Via composer:

[](#via-composer)

```
$ composer require dotzero/brainfuck
```

### Without composer

[](#without-composer)

Clone the project using:

```
$ git clone https://github.com/dotzero/brainfuck-php
```

and include the source file with:

```
    require_once("brainfuck-php/src/Brainfuck.php");
```

Test
----

[](#test)

First install the dependencies, and after you can run:

```
$ vendor/bin/phpunit
```

License
-------

[](#license)

Licensed under the MIT license:

###  Health Score

29

—

LowBetter than 57% of packages

Maintenance20

Infrequent updates — may be unmaintained

Popularity14

Limited adoption so far

Community11

Small or concentrated contributor base

Maturity59

Maturing project, gaining track record

 Bus Factor1

Top contributor holds 71.4% 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 ~213 days

Total

2

Last Release

3556d ago

### Community

Maintainers

![](https://avatars.githubusercontent.com/u/265633?v=4)[dotzero](/maintainers/dotzero)[@dotzero](https://github.com/dotzero)

---

Top Contributors

[![dotzero](https://avatars.githubusercontent.com/u/265633?v=4)](https://github.com/dotzero "dotzero (5 commits)")[![AlexHowansky](https://avatars.githubusercontent.com/u/296121?v=4)](https://github.com/AlexHowansky "AlexHowansky (2 commits)")

---

Tags

brainfuckinterpreterphpinterpreterbrainfuck

###  Code Quality

TestsPHPUnit

### Embed Badge

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

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

###  Alternatives

[carthage-software/cel-php

A PHP Common Expression Language Implementation

736.5k](/packages/carthage-software-cel-php)[wapmorgan/php-code-analyzer

A program that finds usage of different non-built-in extensions in your php code.

96150.6k4](/packages/wapmorgan-php-code-analyzer)[zepgram/magento-dotenv

Simple autoloader to integrate the Symfony Dotenv component into Magento2

1477.6k](/packages/zepgram-magento-dotenv)[fsc/batch

Library with classes to help you do batch.

185.3k](/packages/fsc-batch)

PHPackages © 2026

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