title: Embedded script languages for PHP?
body: <p>i was wondering if anybody knows of a nice scripting language that can be embedded into php?
  Javascript would be favorite and although there are several attempts they are either much too shaky/slow/outdated (phpjs, j4p5) or a real pain to get up and running on shared hosts (pecl spidermonkey). </p>
  
  <p>The background is: I would like to have a language that is used to control php on the server but it should also support some logic, so yaml, xml or json just isn't enough. I've looked into LUA interpreters and mediakwiki's "Winter" but they all either rely on external engines or have powerful binding whatsoever. </p>
  
  <p>pecl spidermonkey binding's appears to be the most complete where you can register vars, functions and whole objects to the js-engine. Does anyone know of any system or language that might come close to what I am looking for?</p>
  
  <p>best</p>
  
  <p>rolf</p>