Win7 installing composer Failed to decode Zlib stream

Source: Internet
Author: User
Tags learn php

Today to learn PHP when you want to install composer, just started to use the EXE file installation method, but installed several times have not been installed successfully, such as:

There may be some other errors, so here I changed a way to install, is to manually install composer, the method is as follows:

The first step:

Download file, Address: https://getcomposer.org/download/

Remember to download Phar files, such as:



This is where the downloaded files are placed in the PHP directory.

Step Two:

Create a new Composer.bat file and write the contents in it:

@ECHO OFF   php "%~dp0composer.phar"%*  

  

Then double-click Execute this file.
Step Three:

If your PHP has been configured with environment variables to skip, if not please configure the PHP directory to the environment variable

Fourth Step:

Open the cmd window input composer-v, test the installation results, if you see the installation succeeded as shown:

Win7 installing composer Failed to decode Zlib stream

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.