Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

Call Java method from PHP5

Tags:

java

php

binding

There used to be a PHP extension that could load Java libraries and call methods in them. That was for PHP 4.

Is there a way to do the same in PHP 5?

like image 586
AndreKR Avatar asked Dec 28 '10 21:12

AndreKR


1 Answers

If you need Java integration in PHP 5, there is the Zend Server Java bridge:

http://www.zend.com/en/products/server-ce/

and "PHP/Java Bridge":

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

EDIT

If you don't like either of the above options, then consider using Quercus. This is a Java implementation of PHP, that makes it easy to reference Java from within PHP and vice-versa

like image 56
Mark Baker Avatar answered Oct 05 '22 00:10

Mark Baker