PHPackages                             rbdwllr/automata - 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. rbdwllr/automata

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

rbdwllr/automata
================

An Elementary Cellular Automata library for PHP.

0.0.2-beta.2(4y ago)141MITPHP

Since Aug 5Pushed 4y ago1 watchersCompare

[ Source](https://github.com/RobDWaller/automata)[ Packagist](https://packagist.org/packages/rbdwllr/automata)[ RSS](/packages/rbdwllr-automata/feed)WikiDiscussions master Synced today

READMEChangelog (5)Dependencies (3)Versions (7)Used By (0)

[![CircleCI](https://camo.githubusercontent.com/d99165fe36b38f26414ddf44f13ef216ebacc958d670a58ad592cb951b8f2f6e/68747470733a2f2f636972636c6563692e636f6d2f67682f526f624457616c6c65722f6175746f6d6174612f747265652f6d61737465722e7376673f7374796c653d737667)](https://circleci.com/gh/RobDWaller/automata/tree/master) [![SonarCloud](https://camo.githubusercontent.com/4a147d2d05cd949c8910ecd1c17ca456bd39d61d01df7026d920c56d9fabf994/68747470733a2f2f736f6e6172636c6f75642e696f2f6170692f70726f6a6563745f6261646765732f6d6561737572653f70726f6a6563743d526f624457616c6c65725f6175746f6d617461266d65747269633d7371616c655f726174696e67)](https://sonarcloud.io/dashboard?id=RobDWaller_automata) [![SonarCloud](https://camo.githubusercontent.com/7cfce46e27cf1d5c3918c18fc9ae6db906d9e2d0ee3065edfe15f7905489689e/68747470733a2f2f736f6e6172636c6f75642e696f2f6170692f70726f6a6563745f6261646765732f6d6561737572653f70726f6a6563743d526f624457616c6c65725f6175746f6d617461266d65747269633d636f766572616765)](https://sonarcloud.io/dashboard?id=RobDWaller_automata)

Automata
========

[](#automata)

An Elementary Cellular Automata library for PHP. All credit goes to Stephen Wolfram and Melanie Mitchell.

Basic Usage
-----------

[](#basic-usage)

```
use Automata\Automata;

$automata = new Automata();

$result = $automata->generate(110, 4, '01010');

$result->toArray();
```

Advanced Usage
--------------

[](#advanced-usage)

```
use Automata\CellsFactory;
use Automata\RulesFactory;
use Automata\Iterator;

$cellsFactory = new CellsFactory();
$cells = $cellsFactory->create("01010");

$rulesFactory = new RulesFactory();
$rules = $rulesFactory->create(110);

$iterator = new Iterator(new Iterate(), $cells, $rules);

$iterations = $iterator->iterate(4);

$iterations->toArray();
```

Rules
-----

[](#rules)

```
000 = 0
001 = 1
010 = 1
011 = 1
100 = 0
101 = 1
110 = 1
111 = 0

```

###  Health Score

21

—

LowBetter than 19% of packages

Maintenance20

Infrequent updates — may be unmaintained

Popularity9

Limited adoption so far

Community7

Small or concentrated contributor base

Maturity41

Maturing project, gaining track record

 Bus Factor1

Top contributor holds 100% 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 ~43 days

Total

5

Last Release

1567d ago

### Community

Maintainers

![](https://avatars.githubusercontent.com/u/634080?v=4)[Rob Waller](/maintainers/RobDWaller)[@RobDWaller](https://github.com/RobDWaller)

---

Top Contributors

[![RobDWaller](https://avatars.githubusercontent.com/u/634080?v=4)](https://github.com/RobDWaller "RobDWaller (77 commits)")

###  Code Quality

TestsPHPUnit

Static AnalysisPHPStan

Code StylePHP\_CodeSniffer

Type Coverage Yes

### Embed Badge

![Health badge](/badges/rbdwllr-automata/health.svg)

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

PHPackages © 2026

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