2017 © Pedro Peláez
 

library executer

Eval php code in temporary files to enable debugging

image

icewind/executer

Eval php code in temporary files to enable debugging

  • Saturday, November 7, 2015
  • by icewind1991
  • Repository
  • 0 Watchers
  • 0 Stars
  • 10 Installations
  • PHP
  • 0 Dependents
  • 0 Suggesters
  • 0 Forks
  • 0 Open issues
  • 2 Versions
  • 0 % Grown

The README.md

Executer

Build Status Code Coverage Scrutinizer Code Quality, (*1)

Eval php code in temporary files to enable debugging, (*2)

composer require icewind/executer

Why not just use eval?

Since code loaded trough eval doesn't come from a file it's not possible for debuggers to show you the code being executed, by placing the code in a temporary file and including it you gain the ability view the code in your favorite debugger while stepping trough it., (*3)

Usage


use Icewind\Executer\Executer; $executer = new Executer(); $executer->evalCode('echo "foo"');

API

  • evalCode(string $code) Execute eval-compatible code (doesn't start with '<?php...')
  • includeCode(string $code) Execute include-compatible code (start with '<?php...')

The Versions

07/11 2015

dev-master

9999999-dev

Eval php code in temporary files to enable debugging

  Sources   Download

MIT

The Requires

 

The Development Requires

07/11 2015

v0.1.0

0.1.0.0

Eval php code in temporary files to enable debugging

  Sources   Download

MIT

The Requires

 

The Development Requires