Skip to content
A programming language for making custom logic flow in PHP applications
Branch: master
Clone or download
Fetching latest commit…
Cannot retrieve the latest commit at this time.
Type Name Latest commit message Commit time
Failed to load latest commit information.
LICENSE Create LICENSE May 3, 2019
Logica.php added method to add predefined variables May 11, 2019 added get function May 11, 2019
example.php updated example May 3, 2019


A tiny programming language for making custom logic flow in PHP applications

note: spaces are there for a reason. this language is really simple and requires spaces to split calls


Functions are defined within [square brackets].

Available functions:


a standard if block
param 1 must be a boolean (or something that returns a boolean like an operation)
must be ended with [fi]


jumps to a line specified by param 1
note: lines start at 0


will concatenate all parameters


will concatenate all parameters and print the result


will exit


get static variable from a predefined array set with addStatic

Available operators with two params:


Available operators with one param:


Operations are defined with (brackets) and either one param or two params.

Variables are always global, and can be overwritten. Variables should be set like this:

variable name = value


counter = 0

[if (counter > (10 - 3))]

	[print counter " is higher than " 7]


[if (counter < 10)]

	counter = (counter + 1)

	[jump 3]


[if (counter)]

	[print "counter is higher than " [cat "1" 0]]



[print "this message will never be printed"]

Example output:

8 is higher than 7
9 is higher than 7
10 is higher than 7
counter is higher than  10
You can’t perform that action at this time.