I package my source code in Java using .jar. Is there any things like that in php?? Thank you.
A package is a mechanism in Java for organizing classes into namespaces. A jar is a Java ARchive, a file that aggregates multiple Java classes into one.
There are two possible ways to bridge PHP and Java: you can either integrate PHP into a Java Servlet environment, which is the more stable and efficient solution, or integrate Java support into PHP. The former is provided by a SAPI module that interfaces with the Servlet server, the latter by this Java extension.
The closest thing PHP is Phar: http://php.net/manual/en/book.phar.php
there is phar.
http://www.php.net/manual/en/intro.phar.php
There are two:
bcompiler and phar
I actually asked a question regarding these, but I don't remember getting too many useful responses.
If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!
Donate Us With