PHPackages                             thunderer/logeek - 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. thunderer/logeek

ActiveLibrary

thunderer/logeek
================

Lego Mindstorms NXT-like robot programming engine in PHP

v0.2.0(7y ago)09MITPHPPHP ^7.0

Since Mar 8Pushed 7y ago1 watchersCompare

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

READMEChangelog (2)Dependencies (1)Versions (3)Used By (0)

Logeek
======

[](#logeek)

[![Build Status](https://camo.githubusercontent.com/538210a32103c7f006dc0d09f9c34aaafb8fde6877a6621968e34f7cd2f908e7/68747470733a2f2f7472617669732d63692e6f72672f7468756e64657265722f4c6f6765656b2e706e673f6272616e63683d6d6173746572)](https://travis-ci.org/thunderer/Logeek)[![SensioLabsInsight](https://camo.githubusercontent.com/bb26cab98c6191dac878abf61e83f139a0482aecc8bd40688e14b65e93a0f2ed/68747470733a2f2f696e73696768742e73656e73696f6c6162732e636f6d2f70726f6a656374732f64363461383631372d393765372d343537662d616533642d3333343331306238633466352f6d696e692e706e67)](https://insight.sensiolabs.com/projects/d64a8617-97e7-457f-ae3d-334310b8c4f5)[![License](https://camo.githubusercontent.com/76f0806d4da84fbc0b1fe753da519ba023b43793b98a53fae0a62dcfecf6edfc/68747470733a2f2f706f7365722e707567782e6f72672f7468756e64657265722f6c6f6765656b2f6c6963656e73652e737667)](https://packagist.org/packages/thunderer/logeek)[![Latest Stable Version](https://camo.githubusercontent.com/3acf8dbc94bbffbb05231a01af6e9e63ad03ee09869a69a57d33ea2aaae5b0a2/68747470733a2f2f706f7365722e707567782e6f72672f7468756e64657265722f6c6f6765656b2f762f737461626c652e737667)](https://packagist.org/packages/thunderer/logeek)[![Dependency Status](https://camo.githubusercontent.com/eb1e34511fb953b4a7debbbab0196665a29d37f89eec5990ebd5d64ced298ac4/68747470733a2f2f7777772e76657273696f6e6579652e636f6d2f7068702f7468756e64657265723a6c6f6765656b2f62616467652e737667)](https://www.versioneye.com/php/thunderer:logeek)[![Scrutinizer Code Quality](https://camo.githubusercontent.com/d91b35b5efe53df63016d68d41ed0b25c864bba9b1fcb75b309038b95c5b6651/68747470733a2f2f7363727574696e697a65722d63692e636f6d2f672f7468756e64657265722f4c6f6765656b2f6261646765732f7175616c6974792d73636f72652e706e673f623d6d6173746572)](https://scrutinizer-ci.com/g/thunderer/Logeek/?branch=master)[![Code Coverage](https://camo.githubusercontent.com/afc90e2e046eff14a4f775c12b12b9454da462e83471ee3108aad3e77828d06e/68747470733a2f2f7363727574696e697a65722d63692e636f6d2f672f7468756e64657265722f4c6f6765656b2f6261646765732f636f7665726167652e706e673f623d6d6173746572)](https://scrutinizer-ci.com/g/thunderer/Logeek/?branch=master)[![Code Climate](https://camo.githubusercontent.com/90bfba7dfac295923c2c33c8430b2bb96c6a9ab9505969acd183acc9b6460d73/68747470733a2f2f636f6465636c696d6174652e636f6d2f6769746875622f7468756e64657265722f4c6f6765656b2f6261646765732f6770612e737667)](https://codeclimate.com/github/thunderer/Logeek)

Introduction
------------

[](#introduction)

Logeek is a PHP engine for learning basic programming by simulating movement of element through a board. It's concepts are similar to [LEGO Mindstorms](http://www.lego.com/en-us/mindstorms/) or Android and iPhone games like [Robot School](https://play.google.com/store/apps/details?id=com.nextisgreat.robotschool).

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

[](#requirements)

Only PHP 5.3 (namespaces).

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

[](#installation)

This library is available on Packagist under alias `thunderer/logeek`.

Usage
-----

[](#usage)

```
// first create Board object with desired dimensions
$board = new Thunder\Logeek\Board(5, 5);
// then add field types and actions allowed on this board
$board->addFieldTypes(array('ground' => '.'));
$board->addActions(array(new MoveAction()));
// load board using field aliases
$board->loadFromString('...');
// add actors and exits
$board->addExit('exit', 2, 0);
$board->addActor('robot', 0, 0, 'right');
// add program for your actor, function "main" will be run
$compiler = new Compiler();
$functions = $compiler->compile($board, '
function main
  move 2
    ');
// run the simulation (print board size before and after)
echo $board->renderBoard();
$board->runActor('robot');
echo $board->renderBoard();
// check if everything is correct
assert(true === $board->isActorAtExit('robot', 'exit'));
```

Program syntax is a simple Python-like programming language with significant white-space (indentation of 2 spaces). Number as the first token in line means repeating that line that number of times. Currently implemented actions are as follows:

- Basic:

    - rotate left|right
    - move length|variable
    - pick up|down
    - open
- Loops:

    - for iterations
    - while variable is|not value
- Conditions:

    - if variable is|not value
- Structure:

    - function name
- Sensors:

    - sensor-type variable
    - sensor-distance variable
    - sensor-proximity variable

Sample simulations are implemented in `tests/LogeekTest.php`, it's easy to look, change and experiment with them.

License
-------

[](#license)

See LICENSE file in the root of this repository.

###  Health Score

22

—

LowBetter than 22% of packages

Maintenance20

Infrequent updates — may be unmaintained

Popularity4

Limited adoption so far

Community7

Small or concentrated contributor base

Maturity49

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 ~1218 days

Total

2

Last Release

2862d ago

PHP version history (2 changes)v0.1.0PHP &gt;5.3.0

v0.2.0PHP ^7.0

### Community

Maintainers

![](https://www.gravatar.com/avatar/680192ceb7e1e044f31aec779ef8220d062d819d476338a0c9cf5792cf8f424e?d=identicon)[Thunderer](/maintainers/Thunderer)

---

Top Contributors

[![thunderer](https://avatars.githubusercontent.com/u/1087180?v=4)](https://github.com/thunderer "thunderer (11 commits)")

###  Code Quality

TestsPHPUnit

### Embed Badge

![Health badge](/badges/thunderer-logeek/health.svg)

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

PHPackages © 2026

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