Muhammad Raihan Muhaimin
Muhammad Raihan Muhaimin

Reputation: 5729

Install command is not working in Composer

I am trying to install composer. I downloaded it using windows installer. My composer.json looks like this

{
    "require": {
        "monolog/monolog": "1.2.*"
    }
}

Now when I try to run the command composer install it is giving me following error.

C:\ProgramData\Composer\bin>php composer.phar install
Loading composer repositories with package information
Installing dependencies (including require-dev)
  - Installing monolog/monolog (1.2.1)
    Downloading: 100%
    Downloading: 100%
    Downloading: connection...
Could not fetch http://nodeload.github.com/Seldaek/monolog/zip/1.2.1, enter your GitHub credentials to access private repos
The credentials will be swapped for an OAuth token stored in         C:/Users/RUMMAN/AppData/Roaming/Composer/config.json, your password will not be stored
To revoke access to this token you can visit https://github.com/settings/applications
Username: 
Password:

If I put them blank it gives me following error

  [Composer\Downloader\TransportException]
  The "https://api.github.com/authorizations" file could not be downloaded: Unable to find the wrapper "https" - did you forget to enable it when you configured PHP?
  failed to open stream: Invalid argument


install [--prefer-source] [--prefer-dist] [--dry-run] [--dev] [--no-dev] [--no-custom-installers] [--no-scripts] [--no-progress] [-v|vv|vvv|--verbose] [-o|--optimize-autoloader]

Just to mention I already enabled open SSL in my php setting.

Upvotes: 2

Views: 7337

Answers (1)

greg0ire
greg0ire

Reputation: 23255

If you really enabled openSSL for php CLI, then it should show up when you run php -m in a terminal. If it does not, then run php --ini and edit the php.ini that shows up in the output of this command.

Upvotes: 2

Related Questions