📜 ⬆️ ⬇️

Bridge between PHP and Java

Since I wrote a post, and especially in the last month, a couple of materials have been published that demonstrate the importance of this technology / But I still have to go deeper. Here is a brief explanation of what's what.

What it is
In essence, the bridge between PHP and Java gives developers access to Java code from their application and vice versa. The benefit is that you can use libraries or services embodied in one platform by the application of another environment.

This method differs from the standard use of front end HTTP servers for individual calls to PHP scripts or J2EE applications. PHP and Java applications can call each other without involving the HTTP server environment.

While you are using the connection between the Web Services API over HTTP, PHP-Java bridges allow you to call the remote application APIs directly from the program code. According to this, they are an order of magnitude more effective than ordinary network requests.
')
How it works
One or more of the following rules must be followed:


Where is it
Here are three main projects that embody this technology in different aspects.


Where to find out more
A well-documented OpenSource bridge between PHP and Java gives the impression of being the most mature in this technology. You can find a lot of information on the links on the project topic.

IBM developerWorks made the first installment in the series “Develop in Java and PHP on AIX 5.3”. But this requires a Unix environment.

There is not a lot of information yet, but I hope to find out more when / if Andy Gutman will post a presentation with JavaOne, which he described in his Bulgaria.

I'm not sure about the PHP Integration Kit information and am not sure that it has changed since the publication of the alphaWorks technology last year.

Source: https://habr.com/ru/post/31071/


All Articles