PHP Classes

PHP Interpreter: Execute PHP code by interpreting source strings

Recommend this page to a friend!
     
  Info   View files Files   Install with Composer Install with Composer   Download Download   Reputation   Support forum   Blog    
Ratings Unique User Downloads Download Rankings
StarStarStar 59%Total: 429 All time: 6,329 This week: 39Up
Version License PHP version Categories
php-interpreter 1.0.0GNU General Publi...5.3PHP 5, Emulators, Parsers
Description 

Author

This package can execute PHP code by interpreting source strings.

A compiler class can parse the PHP code and turn it into a stream of code tokens.

The interpreter class can take the parsed code tokens and execute them by calling separate classes that implement the functionality of different PHP extensions.

Innovation Award
PHP Programming Innovation award nominee
December 2013
Number 4
Sometimes applications need to execute PHP source code that cannot be fully trusted.

This class provides a solution that may help solving this problem. It implements PHP source code interpreter written in pure PHP, so it can execute PHP code in a controlled environment.

Manuel Lemos
Picture of Pavel Astakhov
  Performance   Level  
Name: Pavel Astakhov is available for providing paid consulting. Contact Pavel Astakhov .
Classes: 4 packages by
Country: Kazakhstan Kazakhstan
Age: 43
All time rank: 19591 in Kazakhstan Kazakhstan
Week rank: 180 Up1 in Kazakhstan Kazakhstan Equal
Innovation award
Innovation award
Nominee: 2x

  Files folder image Files (17)  
File Role Description
Files folder imagefunctions (6 files)
Files folder imagephpunit (3 files)
Accessible without login Plain text file Examples.php Example Examples of usage
Plain text file Compiler.php Class Compiler class, used to parse the PHP code for the class Runtime
Plain text file Runtime.php Class Runtime class, used to execute PHP code, prepared by class Compiler
Accessible without login Plain text file Settings.php Conf. contains the settings
Accessible without login Plain text file constants.php Conf. contains the PHP constants
Plain text file ExceptionFoxway.php Class Exception class
Plain text file iRawOutput.php Class Class source
Plain text file outPrint.php Class Class source

  Files folder image Files (17)  /  functions  
File Role Description
  Plain text file array.php Class Class source
  Plain text file datetime.php Class Class source
  Plain text file math.php Class Class source
  Plain text file pcre.php Class Class source
  Plain text file strings.php Class Class source
  Plain text file var.php Class Class source

  Files folder image Files (17)  /  phpunit  
File Role Description
  Accessible without login Plain text file RuntimeFunctionsDatetimeTest.php Test Unit test script
  Accessible without login Plain text file RuntimeFunctionsPcreTest.php Test Unit test script
  Accessible without login Plain text file RuntimeTest.php Test Unit test script

The PHP Classes site has supported package installation using the Composer tool since 2013, as you may verify by reading this instructions page.
Install with Composer Install with Composer
 Version Control Unique User Downloads Download Rankings  
 100%
Total:429
This week:0
All time:6,329
This week:39Up
 User Ratings  
 
 All time
Utility:75%StarStarStarStar
Consistency:75%StarStarStarStar
Documentation:-
Examples:83%StarStarStarStarStar
Tests:66%StarStarStarStar
Videos:-
Overall:59%StarStarStar
Rank:1238