Answer the question
In order to leave comments, you need to log in
How to correctly specify the dependencies of your package?
Hello.
I have one small package for laravel, inside it uses the following dependencies:
"require-dev": {
"orchestra/testbench": "^[email protected]",
"phpunit/phpunit": "^8.0"
},
Answer the question
In order to leave comments, you need to log in
After reading the comments, I noticed that you specified the php version too hard.
Personally, I advise you to satweet as little as possible (signed greater than or exactly), which specifically your package will work on.
For example, if your specific code is capable of running on 5.4, install it, maybe your package will be used on older systems. Naturally, if there are direct dependencies that need more a priori, then there will be no point in this. But it is considered good practice.
Those in your particular case
"php": ">=7.2"
But if there is, maybe put "php": ">=5.4"
Didn't find what you were looking for?
Ask your questionAsk a Question
731 491 924 answers to any question