How to use the default PHP to execute the phar package?

When developing an installation program recently, it was packaged as a phar package. One problem encountered was that the packaged phar package could not be executed without php. # normal operation php install.phar # Report an error ./install.phar Omit php to report an error when running: $ ./install.phar ./install.phar: line 1: ?php: No such file… Read more How to use the default PHP to execute the phar package?