Closed jakzal closed 5 years ago
Hey, thanks for the issue. yeah it makes sense
Feature is no longer urgent to me, as I'm planning to introduce the composer-bin-plugin in phpqa. It should help solving the conflicts problem.
A phar archive could still be beneficial to others though.
Joining the conversation - as I would also appreciate a phar release.
Main reasoning for me is, that our large code bases currently supports php5.6 - php7.2. To be able to solve this we required to set the platform
to php 5.6
in composer.json
. Thus we are not able to require the tool via composer.
However - our CI environment ( as well as some testing environments) are running in php7.1 - so they can parse+analyze the code base easily when running it from a phar
box makes building phar releases very easy Played around with box and automated phar building - would be happy to help here https://github.com/patrickjahns/cli-phar-experiments
@patrickjahns in the meantime take a look at the composer-bin-plugin. You could use it to install any composer tool global in isolation.
Added a PR #77 which allows a phar to be generated
Hi, I can see phar creator, but I don't know how could it help me.
I want to install phpmnd via https://phar.io. I try:
$ bin/composer.phar phive:run install povils/phpmnd
Phive 0.12.1 - Copyright (C) 2015-2019 by Arne Blankerts, Sebastian Heuer and Contributors
[WARNING] povils/phpmnd 2.0.0: No downloadable PHAR
[WARNING] povils/phpmnd 1.1.1: No downloadable PHAR
[WARNING] povils/phpmnd 1.1.0: No downloadable PHAR
[WARNING] povils/phpmnd 1.0.3: No downloadable PHAR
[WARNING] povils/phpmnd 1.0.2: No downloadable PHAR
[WARNING] povils/phpmnd 1.0.1: No downloadable PHAR
[WARNING] povils/phpmnd 1.0.0: No downloadable PHAR
[ERROR] No matching release found!
Probably because there are no PHARs attached to the releases: https://github.com/povils/phpmnd/releases
Example of releases with PHARs attached: https://github.com/wapmorgan/PhpCodeFixer/releases
Can you add PHPMND PHARs to existing releases? Or maybe publish a new release with PHAR included?
I'm maintaining a docker image with qa tools which phpmnd is part of.
I'm trying to limit number of dependencies installed with "composer global require" to prevent conflicts between tools. Having a phar to download would be really helpful.