-
-
Notifications
You must be signed in to change notification settings - Fork 156
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Wouldn't it be better to have in composer.json just PHP version dependancy? #202
Comments
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 |
just came here to also open a similar issue. having a zero dependency cachetool would be perfect. to add another example: there is also a php-cs-fixer shim for a few months: https://github.com/PHP-CS-Fixer/shim |
So this is about providing a Phar package of this tool. Either as separate package with a dedicated package name or by building and providing the Phar as See e.g. Deployer for an example of the latter: |
one other thing which could work alternatively. if cachetool would be distributed as a executable file it would be self contained und would even work without php beeing installed, see https://github.com/crazywhalecc/static-php-cli |
Not really trying to plug my own project here, but I ran into the same issue last year. I had to get this working for a lot of different projects, running a lot of different PHP versions, sometimes on the same server. In the end I replicated the |
Notice that this would probably also help solving #238. |
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
but I'm losing PHP version check.
Thank you.
The text was updated successfully, but these errors were encountered: