I installed composer error on the PHP7, why the report is Php5.dll lost, is PHP7 not support composer?

Source: Internet
Author: User

Reply content:

Determine if your PHP can be started properly using the command line.

The GUI installer is not recommended, and it is recommended to install it with the command line.

Reference: Packagist/composer China Full-volume 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

The global installation is to install Composer under the path contained in the system environment variable path, and then be able to execute the Composer command directly in the command-line window.

Windows System:

Locate and go to the installation directory of PHP (and the PHP instructions you execute on the command line should be the same set of PHP).
Copy the Composer.phar to the PHP installation directory, which is the same level directory as Php.exe.
Create a new Composer.bat file in the PHP installation directory and save the following code to this file.
@php "%~dp0composer.phar" %*
Finally reopen a command-line window try executing composer--version to see if the version number is correctly output.

I just follow this method to install successfully, PHP version 7.0.1, but the installation of the Shadowsocks Global System Agent opened, so the installation is very smooth.
Remember to 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.