From: <php...@li...> - 2016-08-16 08:26:31
|
Hello Sebastien, I too have spent many years using the Java bridge (in production) to facilitate calling Java from PHP. I have also gone a little further, and have created a simplified client interface to the bridge server that is available as both a PHP include, and a GNU C library. This allows me to access Java via the bridge from C code. I at one moment tried to contact the original JavaBridge maintainers to see if they were interested in including this with their distribution - but with no response. I guess this is a kind of different road to what you have travelled - my efforts were mostly to strip out all of the object inheritance / reflection and etc. and put up a simple list of functions that can be called from a non object language like C (and obviously from PHP as well). I attach the man pages for my javaFunction / javaBridge call library for your inspection. Are you interested in source for this to post / merge along with your project? Regards, Dirk php...@li... wrote: > Hi, > > Just to share some work I did on the refactoring of the Java.inc client and > standalone server. > > For the little story, I've been using the php-java-bridge project in few > mission critical projects for the last 6 years... Mostly using Java from > PHP. > > I may be totally wrong but I feel the project have no clear maintainers > anymore, so I've just ended up rewriting some parts. For now you can have a > look to the client side (replacing Java.inc) on github. See the > https://github.com/belgattitude/soluble-japha/ repository to get more > information. > > I've changed the API mainly to support namespaces, php7, hhvm... but you > can still use a compatibility layer if you rely on java_* global functions > : https://github.com/belgattitude/soluble-japha-pjb62-compat > > I've also set up a repository for the standalone server (including a > freshly compiled JDK1.7+ JavaBridge.jar) : https://github.com/ > belgattitude/pjbserver-tools. And created a fork on github for the server > part : https://github.com/belgattitude/php-java-bridge. I'm using it to > compile and debug the server part. > > If you like to contribute you can open issues on github : > https://github.com/belgattitude/soluble-japha/issues or send a PR. I'll try > my best to answer. > > To be clear, I'm not part of the original php-java-bridge team that have > done a wonderful work making this possible. > > But I feel that's fair for me to publish the changes I've made in the past > year. It may help or encourage some of you to use the bridge. > > All my work is licensed under MIT license so feel free to use and > contribute... > > Have a great day. > > Sébastien > ------------------------------------------------------------------------------ > What NetFlow Analyzer can do for you? Monitors network bandwidth and traffic > patterns at an interface-level. Reveals which users, apps, and protocols are > consuming the most bandwidth. Provides multi-vendor support for NetFlow, > J-Flow, sFlow and other flows. Make informed decisions using capacity > planning reports. http://sdm.link/zohodev2dev > _______________________________________________ > php-java-bridge-users mailing list > php...@li... > https://lists.sourceforge.net/lists/listinfo/php-java-bridge-users > |