Details
-
Feature Request
-
Resolution: Won't Do
-
Optional
-
None
-
None
-
None
Description
PHP is popular, Java is fast, development with JBoss AS is a pleasure. It would be cool to have it together.
There's an implementation of PHP interpreter and libraries in Java - Caucho Quercus, which is reportedly 4x faster.
It seems to have lost momentum, but it's almost fully compatible with the original PHP 5.
First goal is to create a deployer which would scan a deployment for (public) PHP files, bind them to JBoss Web AS service.
Also, it would have to deal with loading the other PHP scripts.
Second goal would be to research which Java EE concepts could be integrated, and how.
For example, having context and dependency injection (CDI) integrated with this would also be nice. PHP doesn't have annotations, but Quercus has hooks for variable read/write, so there could be some magical global variables which would query CDI when read - e.g. $_PersistenceContext, $_CDI[...] etc.
Inspiration: Caucho Resin has some PHP integration. See this case study.