I intend to use single phar file with digital signature to deploy a web application. Combined this with event sourcing would make me very easy to follow release early, release often philosophy...
I am using composer as package manager. What I am uncertain:
To answer some of your questions:
composer install
, get a directory tree of your own files and vendor files, and can then add these all into the .phar file you are about to create. __DIR__
to know where it is, and where other files are relative from this constant. This should be compatible with .phar files. Note that there are already libraries that help you creating .phar files. Have a look at kherge/box , for example.
The technical post webpages of this site follow the CC BY-SA 4.0 protocol. If you need to reprint, please indicate the site URL or the original address.Any question please contact:yoyou2525@163.com.