I reported an error when installing composer on php7. why is php5.dll missing? does php7 not support composer?

Source: Internet
Author: User
SegmentFault (www. sf. gg) is a leading developer technology community in China. We hope to provide programmers with a pure and high-quality technology exchange platform to learn, communicate and grow with developers and create an era for developers!

Reply content:

Check whether your php can be started normally using the command line.

It is not recommended to use a GUI to install the program. we recommend that you use the command line to install the program.

Reference: Packagist/Composer full China image-how to install Composer

php -r "readfile('https://getcomposer.org/installer');" > composer-setup.phpphp composer-setup.phpphp -r "unlink('composer-setup.php');"

Global Installation

Global installation is to install Composer to the PATH included in the system environment variable PATH, and then you can directly execute the composer command in the command line window.

Windows:

Find and enter the PHP installation directory (the same set of php commands as those executed in the command line ).
Copy composer. phar to the PHP installation directory, that is, the same level as php.exe.
Create a composer. bat file in the PHP installation directory and save the following code to this file.
@php "%~dp0composer.phar" %*
Finally, open a command line window and try to execute composer -- version to check whether the version number is correctly output.

Today, I successfully installed my account using this method. PHP version 7.0.1, but the global system proxy of Shadowsocks is enabled during installation, so the installation is quite smooth.
Add the php.exe directory to the system PATH.

Contact Us

The content source of this page is from Internet, which doesn't represent Alibaba Cloud's opinion; products and services mentioned on that page don't have any relationship with Alibaba Cloud. If the content of the page makes you feel confusing, please write us an email, we will handle the problem within 5 days after receiving your email.

If you find any instances of plagiarism from the community, please send an email to: info-contact@alibabacloud.com and provide relevant evidence. A staff member will contact you within 5 working days.

A Free Trial That Lets You Build Big!

Start building with 50+ products and up to 12 months usage for Elastic Compute Service

  • Sales Support

    1 on 1 presale consultation

  • After-Sales Support

    24/7 Technical Support 6 Free Tickets per Quarter Faster Response

  • Alibaba Cloud offers highly flexible support services tailored to meet your exact needs.