Skip to content

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

License

Notifications You must be signed in to change notification settings

Mossengine/FiveCode

Repository files navigation

Mossengine/FiveCode

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

Source Code Download Package PHP Programming Language Build Status Codecov Code Coverage Read License Package downloads on Packagist

Installation

$ composer require mossengine/fivecode
{
    "require": {
        "mossengine/fivecode": "~2.0.0"
    }
}

Usage

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()

// 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

Read the docs for more details on FiveCode language structure or to create your own parsers/functions to provide more capabilities

About

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

Resources

License

Stars

Watchers

Forks

Packages

 
 
 

Languages