Federico Cargnelutti

Simple is better than complex. Complex is better than complicated. | @fedecarg

PHP implemented in 100% Java

with 7 comments

Quercus allows developers to incorporate Java code into PHP web applications and gives both Java and PHP developers a fast, safe, and powerful alternative to the standard PHP interpreter.

Quercus natively supports Unicode and the new Unicode syntax of the up-and-coming PHP 6, and implements a growing list of PHP extensions (i.e. APC, iconv, GD, gettext, JSON, MySQL, Oracle, PDF, Postgres, etc.). Many popular PHP applications will run as well as, if not better, than the standard PHP interpreter straight out of the box.

Quercus PHP libraries are written entirely in Java, thereby taking the advantages of Java applications and infusing them into PHP.

Benefits

Although PHP users and Java users can take advantage of Quercus immediately without modifying their application, the real benefits come from developing mixed Java/PHP applications:

  • PHP libraries written in Java are fast, safe, and relatively easy to develop, compared with C libraries. Since Java is the library language, developers won’t need to be paranoid about third-party libraries having C-memory problems or segvs.
  • PHP applications can take advantage of Java libraries and capabilities like JMS, SOA frameworks, Hibernate, or Spring. (Or EJB if you really wanted.)
  • Java application can move presentation code to PHP, leaving behind templating systems, or languages with small libraries, and taking advantage of PHP flexibility and capability.

Links


Written by Federico

August 9, 2008 at 11:37 am

Posted in Java, PHP, Programming

7 Responses

Subscribe to comments with RSS.

  1. Very Interesting. I’m going to have to setup my test box at home to see how well this runs vs my LAMP stack! Looks like I got a busy Monday.

    Jon

    August 9, 2008 at 2:00 pm

  2. This project is very cool, I’d be interested in moving my views from .jsp’s to PHP for ease of management.

    Owen

    August 11, 2008 at 12:26 pm

  3. Well if its anywhere near as reliable and fast as their Servlet runner, then I’m game, I’ll give it a try when I get home.

    Kelv1n

    August 11, 2008 at 1:51 pm

  4. [...] PHP implemented in 100% Java « PHP::Impact [...]

    Vinny Carpenter's blog

    August 11, 2008 at 7:02 pm

  5. How can I use PHP from Java?

    I would like to use Zend Framework from my Java APP.

    http://forum.caucho.com/?q=node/74

    philip andrew

    August 12, 2008 at 10:02 am

  6. [...] Quercus is a complete implementation of the PHP language and libraries in Java. It gives both Java and PHP developers a fast, safe, and powerful alternative to the standard PHP interpreter. Quercus is available for download as a WAR file which can be easily deployed on Jetty: [...]

  7. [...] PHP implemented in 100% Java « PHP::Impact ( [str Blog] ) [...]


Leave a Reply