cachetool
cachetool copied to clipboard
Wouldn't it be better to have in composer.json just PHP version dependancy?
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.
This is a very good idea!
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
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