Reputation: 61380
Does anyone know of a JavaScript interpreter that has bindings to PHP or Python?
Upvotes: 5
Views: 658
Reputation: 740
At now there is v8js-0.1.3 (beta) pecl package for PHP5.3.3+ You can easily install it like that (debian/ubuntu):
sudo apt-get install libv8-dev
sudo pecl install v8js-beta
sudo bash -c 'echo "extension=v8js.so" > /etc/php5/mods-available/_pecl.v8js.ini'
sudo ln -s ../mods-available/_pecl.v8js.ini /etc/php5/conf.d/30-v8js.ini
I've using _pecl prefix for pecl packages. Of course you can remove or change it as you wish.
Upvotes: 1
Reputation: 1156
There's a previous discussion on embedding various languages into PHP.
re: Javascript in particular, Pecl Spidermonkey is mentioned; otherwise, not much to choose from.
Upvotes: 2