PHPackages                             midorikocak/game-of-life - 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. midorikocak/game-of-life

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

midorikocak/game-of-life
========================

A simple standalone OOP, Connway's gameoflife implementation with PHP

1002PHPCI failing

Since Oct 2Pushed 6y agoCompare

[ Source](https://github.com/midorikocak/php-test-gol)[ Packagist](https://packagist.org/packages/midorikocak/game-of-life)[ RSS](/packages/midorikocak-game-of-life/feed)WikiDiscussions master Synced 5d ago

READMEChangelogDependenciesVersions (1)Used By (0)

game-of-life
============

[](#game-of-life)

[![Build Status](https://camo.githubusercontent.com/b86dd729d95c0ff792da558d0dd8410cba3170fca959d2429c38887a5b68a986/68747470733a2f2f696d672e736869656c64732e696f2f7472617669732f6d69646f72696b6f63616b2f7068702d746573742d676f6c2f6d61737465722e7376673f7374796c653d666c61742d737175617265)](https://travis-ci.org/midorikocak/php-test-gol)[![Quality Score](https://camo.githubusercontent.com/7f4df2162449a0adb7032a7fd4ec558a15d4449fe42afd12bc6a162e82de15b3/68747470733a2f2f7363727574696e697a65722d63692e636f6d2f672f6d69646f72696b6f63616b2f7068702d746573742d676f6c2f6261646765732f7175616c6974792d73636f72652e706e673f623d6d6173746572)](https://scrutinizer-ci.com/g/midorikocak/php-test-gol)[![Coverage Status](https://camo.githubusercontent.com/8159e153626894524e5416266ffd3c6f8f18a5a8f8eb24494783272822a4e6e1/68747470733a2f2f696d672e736869656c64732e696f2f7363727574696e697a65722f636f7665726167652f672f6d69646f72696b6f63616b2f7068702d746573742d676f6c2e7376673f7374796c653d666c61742d737175617265)](https://scrutinizer-ci.com/g/midorikocak/php-test-gol/code-structure)[![Software License](https://camo.githubusercontent.com/55c0218c8f8009f06ad4ddae837ddd05301481fcf0dff8e0ed9dadda8780713e/68747470733a2f2f696d672e736869656c64732e696f2f62616467652f6c6963656e73652d4d49542d627269676874677265656e2e7376673f7374796c653d666c61742d737175617265)](LICENSE.md)

Connway's game of life implementeation using PHP some of best practices

[![Screenshot](screenshot.png)](screenshot.png)

Structure
---------

[](#structure)

```
data/
src/
tests/
vendor/

```

Install
-------

[](#install)

Go to downloaded directory and use command

```
$ composer install
```

Usage
-----

[](#usage)

Using a file:

```
$ php life.php -v -f data/glider_gun.xml
```

Getting help:

```
$ php life.php -h

Connway's Game of Life by Midori Kocak

Usage: life.php [-f filename, --filename filename] [-h, --help] [-i iterations, --iterations iterations] [-o outputFilename, --outputFilename outputFilename (default: out.xml)] [-r, --random] [-s size, --size size] [-sp species, --species species] [-v, --verbose]

Optional Arguments:
	-r, --random
		Create Game of life from random matrix
	-i iterations, --iterations iterations
		Number of iterations
	-s size, --size size
		Square size of the world
	-sp species, --species species
		Amount of species
	-f filename, --filename filename
		File Name of XML input
	-o outputFilename, --outputFilename outputFilename (default: out.xml)
		File Name of XML output
	-v, --verbose
		Verbose output, shows GameOfLife in CLI
	-h, --help
		Prints a usage statement
```

Using a random array generated using size:

```
$ php life.php -r -s 40 -i 1024 -sp 1 -v
```

Change log
----------

[](#change-log)

Please see [CHANGELOG](CHANGELOG.md) for more information on what has changed recently.

Testing
-------

[](#testing)

```
$ phpunit
```

Contributing
------------

[](#contributing)

Please see [CONTRIBUTING](CONTRIBUTING.md) and [CONDUCT](CONDUCT.md) for details.

Security
--------

[](#security)

If you discover any security related issues, please email  instead of using the issue tracker.

Credits
-------

[](#credits)

- [Midori Kocak](https://github.com/midorikocak)

License
-------

[](#license)

The MIT License (MIT). Please see [License File](LICENSE.md) for more information.

###  Health Score

20

—

LowBetter than 14% of packages

Maintenance20

Infrequent updates — may be unmaintained

Popularity8

Limited adoption so far

Community10

Small or concentrated contributor base

Maturity36

Early-stage or recently created project

 Bus Factor1

Top contributor holds 96.7% 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.

### Community

Maintainers

![](https://www.gravatar.com/avatar/983c3c55c001768e4e31e784835671f27dcccd9158a77870ffbb8167896f88f1?d=identicon)[midorikocak](/maintainers/midorikocak)

---

Top Contributors

[![midorikocak](https://avatars.githubusercontent.com/u/545472?v=4)](https://github.com/midorikocak "midorikocak (29 commits)")[![miroslavhajek](https://avatars.githubusercontent.com/u/1500519?v=4)](https://github.com/miroslavhajek "miroslavhajek (1 commits)")

### Embed Badge

![Health badge](/badges/midorikocak-game-of-life/health.svg)

```
[![Health](https://phpackages.com/badges/midorikocak-game-of-life/health.svg)](https://phpackages.com/packages/midorikocak-game-of-life)
```

###  Alternatives

[soup/paginator

Paginator is a simple class that allows you to create pagination. It doesn't require any database connection. It is compatible with Twitter's Bootstrap Framework, by using the CSS class pagination that is also attached.

351.5k](/packages/soup-paginator)[components/jquery-htmlclean

HTML Clean plug-in for jQuery

183.1k1](/packages/components-jquery-htmlclean)

PHPackages © 2026

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