Extension:PhpTags

The PhpTags extension enhances parser with magic expressions that has syntax of PHP language. The PhpTags extension supports types, variables, constants, expressions, operators, control structures, functions and objects.

How it works
First the PhpTags compiles the source code into a set of simple commands. Next the Runtime class processes the set of simple commands. The Runtime class performs arithmetic, logical, comparison and assignment operators, conditional execution of code fragments (if statement) and loops. This allows to achieve high performance.

All of constants, functions and objects are a hooks registered by other extensions. When they accessed, PhpTags requests the result from corresponding extension passing it the name of the hook and other required parameters.

Thus achieving the safe use of a scripting language as magic expressions in your wiki. You should have the illusion of direct execution PHP code although this never happens.

Usage
The code should be placed between the tags  and. It can be located in any namespace if it is allowed by the variable.

It will display: Hello world!!!

More details can be found in the quick start guide.

Optional Installation
@todo


 * PhpTags CodeEditor
 * Extension:PhpTags Debugger

Additional Installation
The PhpTags extension implements only magic expressions and one is not contain any implementation of functions.

Install also additional extensions which are compatible with magic expressions of the PhpTags.

The main ones are:
 * PhpTags Wiki - allows query various data from MediaWiki
 * PhpTags Functions - contains many functions for data processing
 * PhpTags Widgets - displays the data in different ways

Configuration parameters

 * $wgPhpTagsMaxLoops: Maximum number of allowed loops
 * $wgPhpTagsNamespaces: Array of namespaces in which allowed to use the extension PhpTags, and if boolean 'true' then it is unlimited namespaces