Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

php equivalent to jython? [closed]

i wonder if there is a php equivalent to jython so you can use java classes with php?

thanks

like image 419
never_had_a_name Avatar asked Dec 07 '22 03:12

never_had_a_name


2 Answers

http://www.caucho.com/resin-3.0/quercus/

http://php-java-bridge.sourceforge.net/pjb/

like image 97
Amber Avatar answered Dec 13 '22 21:12

Amber


I'm not quite sure what you are asking, since you are talking about two completely different things: a PHP equivalent to Jython, and accessing Java classes from PHP. So, I'm going to answer both.

Jython is a Python implementation for the JVM. So, the PHP equivalent would be a PHP implementation for the JVM. There are actually two that I know of: IBM's P8, which is part of Project Zero and Quercus.

However, you don't need to run your PHP on Java if you want to run it with Java. A PHP-to-Java bridge would be enough, you don't need a PHP-on-Java implementation. I know that at some point in the past at least one such bridge must have existed, because someone once told me that they used one, but that is about all I know.

like image 24
Jörg W Mittag Avatar answered Dec 13 '22 21:12

Jörg W Mittag