Is there a solution to release a PHP web application from a phar file?

459 Views Asked by At

I'm looking for a solution (if such an exists) to release a PHP web application from .phar analogically to Java's WAR file.

Requirements:

  • compiling source into a package
  • automatically unpack public files on release
  • support pre/post install hooks
  • optionally have a web interface like TomCat

I know it's relatively easy to build it but I was wondering is there a ready solution for that?

1

There are 1 best solutions below

0
On

You can access static files form phar files easily, but there is some performance penalty involved.

See my phar benchmark blog post for more info.