Composer How to install?

Source: Internet
Author: User

Reply content:

Know the first answer, just tried, to the landlord to write a reliable Chinese answer:
PHP Many excellent framework, such as Laravel and so on, the mirror is abroad, the relevant package management tool Composer is also abroad, so the possibility of installation failure is very large, the main problem is that because not even composer. Here's how to fix it:
Composer Go to the official website and choose Download to pull down
Looking for manual Download.

I have downloaded the latest, I have downloaded the latest,

The file name should be Composer.phar, paste this into your php file directory

is a php.exe file in the same sibling directory, I myself is a custom environment, a lot of people are using XAMPP and so on
Look at your own situation.



Please look at the first two files and the last file, which is probably the relationship

Composer.bat inside writes:

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


Then put your PHP into the PATH environment variable I don't have to say more.

Open a command prompt to enter composer-v


That's probably the way you see it. Then you have to install Laravel and then you have to be a little more trouble, but I do not know which frame you are going to use, just don't talk nonsense, eat


Say one more: in the domestic learning something, tossing the environment 90% people see the following two links to know.
Packagist/composer China Full-volume mirror

Composer Chinese web
  1. Save Ca-bundle.crt to your local path

  2. Double click Ca-bundler.crt to import it

  3. Add the PHP.ini

    curl.cainfo=d:/download/ca-bundle.crt  openssl.cafile=d:/download/ca-bundle.crt
    What's the deal? Say, the landlord is want to learn Yii 2.0 it? Go directly to the entire VPN bar, after the wall what problems are not, now free VPN is also quite a lot of. The problem is, I can't even download composer-setup.exe, it's stuck in these days.

    Who has to send a link to find solutions. The same question, is not the link on/ httpcomposer.org, cannot get the installation package?

    I have solved, recommend you use TOVPN with Agent can link up! If there is a problem, say @ Ma Xiao put forward a positive solution, for you to turn it.
    1. Click Ca-bundle.crt , then ctrl+s save to Local
    2. Double-click the CA-BUNDLER.CRT to install
    3. Add the following two lines to the php.ini file you are using:
    curl.cainfo=d:/路径/ca-bundle.crt  openssl.cafile=d:/路径/ca-bundle.crt

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.