clue / phar-composer

Simple phar creation for every PHP project managed via Composer
https://clue.engineering/2019/introducing-phar-composer
MIT License
855 stars 78 forks source link

Any way to make the output file zipped? #104

Closed gonejack closed 2 years ago

gonejack commented 4 years ago

Using this command to make archives and find out that executable.phar is just a large plain text file without zipping.

php -d phar.readonly=off ./phar-composer.phar build . ./bin/executable.phar
clue commented 3 years ago

PRs are very much appreciated! :shipit:

Compression make a whole lot of sense for many use cases. Though keep in mind that this means that both the creator and the user of the archive need to have ext-zlib enabled (which is not always available). Accordingly, this may limit how the resulting archive can be used. I'm fine with adding an option to control this, but this should probably default to being off.

As much as I'd love to work on this myself, there are currently no immediate plans to build this from my end (no demand at the moment and more important outstanding issues currently). If you need this for a commercial project and you want to help sponsor this feature, feel free to reach out and I'm happy to take a look.

clue commented 2 years ago

Closed via #3