Home > Development Tools > composer > composer cannot be installed

composer cannot be installed

藏色散人
Release: 2019-09-03 13:52:17
Original
4791 people have browsed it

composer cannot be installed

##composer cannot be installed?

Solution:

1 , Open the openssl extension of php

You can open the openssl extension directly in the wamp manager, you can also use the php command to open the extension, or you can open the extension by modifying php.ini and restarting.

The following is an example of the command to open the extension:

You can use the following command line to determine the php.ini file path used by php on the command line:

php –ini
Copy after login

Then Use the following command to determine whether the php_openssl.dll extension is opened:

php -i | findstr /I /N “openssl”
Copy after login

If the output string contains openssl information, it means that openssl is opened successfully; otherwise, please change the php.ini file and open the php_openssl.dll extension.

2. Download the installer file, open the link through the browser: getcomposer.org/installer, download the following file to d:\software\composer, the file name is

composer_installer.phar
Copy after login

3. Enter the command Install composer:

php composer_installer.phar
Copy after login

Installation success interface

If the installation is successful, run php composer.phar -v to view the version information of composer

More technical articles on composer use , please visit the

composer tutorial column!

The above is the detailed content of composer cannot be installed. For more information, please follow other related articles on the PHP Chinese website!

Related labels:
source:php.cn
Statement of this Website
The content of this article is voluntarily contributed by netizens, and the copyright belongs to the original author. This site does not assume corresponding legal responsibility. If you find any content suspected of plagiarism or infringement, please contact admin@php.cn
Popular Tutorials
More>
Latest Downloads
More>
Web Effects
Website Source Code
Website Materials
Front End Template