PHPackages                             mossengine/fivecode - 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. mossengine/fivecode

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

mossengine/fivecode
===================

PHP Class to enable fifth generation instructional code driven by programmatic instructions to execute under a controlled logic in the backend.

2.2.4(4y ago)1362MITPHPPHP &gt;=7.0CI failing

Since Jun 21Pushed 4y ago1 watchersCompare

[ Source](https://github.com/Mossengine/FiveCode)[ Packagist](https://packagist.org/packages/mossengine/fivecode)[ Docs](https://github.com/Mossengine/FiveCode)[ RSS](/packages/mossengine-fivecode/feed)WikiDiscussions master Synced 6d ago

READMEChangelog (9)Dependencies (7)Versions (10)Used By (2)

Mossengine/FiveCode
===================

[](#mossenginefivecode)

 **A PHP library for evaluating a 5th Generation programming structure called FiveCode.**

 [![Source Code](https://camo.githubusercontent.com/98d0ae85c412256d50f51f350b56c2cefd699d19ccb0f279abd809af3a3d431a/68747470733a2f2f62616467656e2e6e65742f7061636b61676973742f6e616d652f4d6f7373656e67696e652f46697665436f6465)](https://github.com/mossengine/fivecode) [![Download Package](https://camo.githubusercontent.com/51d0be266bd4fb2a846a14b86d0c11b8cec5ae06a5ae093eae63f764924f64d0/68747470733a2f2f62616467656e2e6e65742f7061636b61676973742f762f4d6f7373656e67696e652f46697665436f64653f6c6162656c3d76657273696f6e)](https://packagist.org/packages/mossengine/fivecode) [![PHP Programming Language](https://camo.githubusercontent.com/4a6847a3e0e9f90e44dace5864690d818ee6d08f3109acfa3ef77a041e97783d/68747470733a2f2f62616467656e2e6e65742f7061636b61676973742f7068702f4d6f7373656e67696e652f46697665436f6465)](https://php.net) [![Build Status](https://camo.githubusercontent.com/425ac9b436f1b1a3b88bd0c705c14450c9ff62dcd72bf74224e7d15719258545/68747470733a2f2f62616467656e2e6e65742f636972636c6563692f6769746875622f4d6f7373656e67696e652f46697665436f64652f6d61737465723f69636f6e3d636972636c656369)](https://camo.githubusercontent.com/425ac9b436f1b1a3b88bd0c705c14450c9ff62dcd72bf74224e7d15719258545/68747470733a2f2f62616467656e2e6e65742f636972636c6563692f6769746875622f4d6f7373656e67696e652f46697665436f64652f6d61737465723f69636f6e3d636972636c656369) [![Codecov Code Coverage](https://camo.githubusercontent.com/d7bdc2c6d16f1a748f8f5f7ce3bb1b611e1777d0fcaca4e2ee6ad6f2560122bb/68747470733a2f2f62616467656e2e6e65742f636f6465636f762f632f6769746875622f4d6f7373656e67696e652f46697665436f64652f6d61737465723f69636f6e3d636f6465636f76)](https://codecov.io/github/mossengine/fivecode) [![Read License](https://camo.githubusercontent.com/242b6145320c2d9267b8764730f106925df882427af5e09d4018f0cad26211e0/68747470733a2f2f62616467656e2e6e65742f7061636b61676973742f6c6963656e73652f4d6f7373656e67696e652f46697665436f6465)](https://github.com/mossengine/fivecode/blob/master/LICENSE) [![Package downloads on Packagist](https://camo.githubusercontent.com/d2d0f9aac16accfb2b7fcc1d3677f505a4a57bf92a59e7cc5760033444c8c893/68747470733a2f2f62616467656e2e6e65742f7061636b61676973742f64742f4d6f7373656e67696e652f46697665436f6465)](https://packagist.org/packages/mossengine/fivecode/stats)

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

[](#installation)

```
$ composer require mossengine/fivecode

```

```
{
    "require": {
        "mossengine/fivecode": "~2.0.0"
    }
}
```

Usage
-----

[](#usage)

### new FiveCode()

[](#new-fivecode)

```
// Require the autoloader, normal composer stuff
require 'vendor/autoload.php';

// Instantiate a FiveCode class
$fiveCode = new Mossengine\FiveCode\FiveCode();

// Evaluate an array of FiveCode through the evaluate class method.
$fiveCode->evaluate([
    ['' => []],
    ['' => []],
    ['' => []],
    ['' => []]
]);
```

### FiveCode::make()

[](#fivecodemake)

```
// Require the autoloader, normal composer stuff
require 'vendor/autoload.php';

// Use the static make method and immediately evaluate an array of instructions
Mossengine\FiveCode\FiveCode::make()
    ->evaluate([
        ['' => []],
        ['' => []],
        ['' => []],
        ['' => []]
    ]);
```

Documentation
-------------

[](#documentation)

Read the [docs](/docs/index.md) for more details on FiveCode language structure or to create your own parsers/functions to provide more capabilities

###  Health Score

25

—

LowBetter than 37% of packages

Maintenance20

Infrequent updates — may be unmaintained

Popularity9

Limited adoption so far

Community11

Small or concentrated contributor base

Maturity52

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

Total

9

Last Release

1778d ago

### Community

Maintainers

![](https://www.gravatar.com/avatar/0508d26fa70a2d0733a48395a313155d34ffae32e2e8e02498d18a506c75ba5f?d=identicon)[brenmoss](/maintainers/brenmoss)

---

Top Contributors

[![brenmoss](https://avatars.githubusercontent.com/u/636870?v=4)](https://github.com/brenmoss "brenmoss (19 commits)")

---

Tags

jsonarraycodebackendexecuteinstruction5GLprogrammatic

###  Code Quality

TestsPHPUnit

Code StylePHP CS Fixer

### Embed Badge

![Health badge](/badges/mossengine-fivecode/health.svg)

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

###  Alternatives

[nette/utils

🛠 Nette Utils: lightweight utilities for string &amp; array manipulation, image handling, safe JSON encoding/decoding, validation, slug or strong password generating etc.

2.1k394.3M1.5k](/packages/nette-utils)[cuyz/valinor

Dependency free PHP library that helps to map any input into a strongly-typed structure.

1.5k9.2M108](/packages/cuyz-valinor)[jbzoo/data

An extended version of the ArrayObject object for working with system settings or just for working with data arrays

891.6M23](/packages/jbzoo-data)[zakirullin/mess

Convenient array-related routine &amp; better type casting

21228.9k2](/packages/zakirullin-mess)[ptrofimov/matchmaker

Ultra-fresh PHP matching functions

27167.7k](/packages/ptrofimov-matchmaker)[armincms/json

A Laravel Nova field.

25149.4k3](/packages/armincms-json)

PHPackages © 2026

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