Answer the question
In order to leave comments, you need to log in
How to download a package from a non-https resource?
Actually, the problem itself is that composer takes everything from https resources ...
Having created my own "mini" repository, there was a problem with certificates.
Composer at an entrance on https - swears on the certificate...
On http - does not want to come.
But, in the composer itself there is a setting that disables https checks ...
Actually the config:
{
"name": "testr/test",
"description": "test of test",
"license": "MIT",
"repositories" : [
{"type" : "composer", "url" : "http://packages.dev.loc/"}
],
"authors": [
{
"name": "onetwo",
"email": "[email protected]"
}
],
"require": {
"one/ine": "1.24"
}
}
{
"name": "testr/test",
"description": "test of test",
"license": "MIT",
"repositories" : [
{"type" : "composer", "url" : "http://packages.dev.loc/"}
],
"config":[
{"secure-http":false}
],
"authors": [
{
"name": "onetwo",
"email": "[email protected]"
}
],
"require": {
"one/ine": "1.24"
}
}
[Composer\Json\JsonValidationException]
"./composer.json" does not match the expected JSON schema:
- config : Array value found, but an object is required
Answer the question
In order to leave comments, you need to log in
It is written that you specify an array instead of an object. It should be like this:
"config": {
"secure-http": false
},
Didn't find what you were looking for?
Ask your questionAsk a Question
731 491 924 answers to any question