0

I have a personal project of building a PHP sandbox in order to build a PHP interactive course. I want to to achieve something like Codeshcool's Ruby, JavaScript and Git courses or Codeacademy's PHP course in the sense of having a PHP REPL and terminal where you can run PHP statements and scripts, respectively.

The main goal is building a tool for people new to PHP and of course share it with the world which would make it a win-win project.

What technology would serve me best? Is there some library I can use for building the REPL/terminal? I was thinking JavaScript so I can embed this to the browser, maybe passing commands to the PHP interpreter from JavaScript code but I don't know if this is nonsense.

Anand Solanki
  • 3,419
  • 4
  • 16
  • 27
oxfist
  • 749
  • 6
  • 22
  • Have a look at [Runkit](http://php.net/manual/en/runkit.sandbox.php) for the server-side – svvac May 22 '14 at 06:49
  • See http://stackoverflow.com/questions/4616159/is-there-a-php-sandbox-something-like-jsfiddle-is-to-js?rq=1 – urzeit May 22 '14 at 06:49
  • Seems to me that php-console is the way to go, but how can I get something like [psysh](http://psysh.org/) to work from the browser? – oxfist May 22 '14 at 07:02
  • did you check boris (A tiny, but robust REPL for PHP)?? https://packagist.org/packages/d11wtq/boris – Shakil Ahmed May 22 '14 at 09:39

0 Answers0