cachetool icon indicating copy to clipboard operation
cachetool copied to clipboard

Wouldn't it be better to have in composer.json just PHP version dependancy?

Open thorewi opened this issue 3 years ago • 7 comments

Hello,

Wouldn't it be better to have in composer.json just PHP version dependancy? And deal with everything else via phar. Similar to https://github.com/phpstan/phpstan.

I would like to install it via composer but sometimes I have dependencies in my project which conflicts with those in cachetool. Then I need to install it via

curl -sLO https://github.com/gordalina/cachetool/releases/latest/download/cachetool.phar
chmod +x cachetool.phar

but I'm losing PHP version check.

Thank you.

thorewi avatar Jan 20 '22 06:01 thorewi

This is a very good idea!

gordalina avatar Jan 20 '22 19:01 gordalina

Hi,

I would like to propose a solution like https://github.com/qossmic/deptrac: There is a seperate repository (https://github.com/qossmic/deptrac-shim) which just contains the .phar file. That way the tool is still installable via composer and is auto-updated via composer update. Callable via vendor/bin/deptrac

codegain avatar Mar 16 '22 15:03 codegain

just came here to also open a similar issue. having a zero dependency cachetool would be perfect. we use the phpstan and also the deptrac-shim and both work great for us.

to add another example: there is also a php-cs-fixer shim for a few months: https://github.com/PHP-CS-Fixer/shim

staabm avatar Sep 06 '22 06:09 staabm