Composer giving error

Asked

Viewed 151 times

1

I tried to install the phpunit for composer in Windows 7, but is not allowing. Nor the phpunit and no other tool/package/framework.

The error you’re displaying is this:

inserir a descrição da imagem aqui

and my file of json that’s the one:

{
"require-dev": {
    "phpunit/phpunit" : "*"
},
"autoload" :{
    "psr-0":{
        "Example":"lib"
    }
}

}

command to "rotate" the composer

composer install

Below are the details of composer

composer diagnosis inserir a descrição da imagem aqui

  • You checked this issue of certificates?

1 answer

0

You need to configure the module openssl of PHP.

First download the certificate on your machine:

curl -o ca-bundle.crt http://curl.haxx.se/ca/cacert.pem

Then set the certificate path on php.ini:

curl.cainfo=/caminho/para/certificados/ca-bundle.crt
openssl.cafile=/caminho/para/certificados/ca-bundle.crt

Then try to download again.

  • need to be a specific folder for the certificate or any one I decide?

  • It could be any one, as long as PHP has read permissions to that folder. Just in case, put it in the PHP folder itself.

  • Okay, I’ll do it.

  • Curl.cainfo and opessl.cafile are in the php.ini ? pq file here did not find these. PS. to using xamp in windows

Browser other questions tagged

You are not signed in. Login or sign up in order to post.