Whitelist PHP Functions

Table of contents

  1. Allow the execution of PHP functions

Allow the execution of PHP functions

We try to support a high level of security for running the Script Engine. Therefore we have just a whitelist implementation for native php functions. So you have to allow alle necessary php functions to use them inside the PHP Script.

$engine->allow('count')
    ->allow('strtoupper');

When php functions are allowed, the Monarch Language definition provides them with the according code completion suggestion for the editor.