Composer giving error

1

I tried to install phpunit through composer in Windows 7, but it is not allowing. Neither phpunit nor any other tool / package / framework.

The error you're experiencing is this:

Andmyfileofjsonisthis:

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

}

command to "roll" composer

composer install

Below are the details of composer

composer diagnose

    
asked by anonymous 21.12.2015 / 05:16

1 answer

0

You need to configure the openssl PHP module.

First download the certificate on your machine:

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

Then configure the path of the certificates in php.ini :

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

Then try to download again.

    
21.12.2015 / 12:09