PHP Administration Tools Composer Installation & testing

Source: Internet
Author: User

I put it in the path directory of the system so that it can be accessed globally.

Curl-ss Https://getcomposer.org/installer | Php

MV Composer.phar/usr/local/bin/composer


This command only checks a small amount of PHP configuration, and then download the Composer.phar file to your working directory, this file is the composer executable file, it is a Phar (PHP archive, which can contain any files, and can be executed on the PHP command line).


Test whether the installation was successful

Composer-v

Composer version 1.0-dev (FEEFD51565BB8EAD38E355B9E501685B5254D0D5)

The above words indicate that the installation was successful!



Composer is a dependency management tool for PHP. It allows you to declare the code base on which the project depends, and it installs them for you in your project. Composer is not a package manager. It involves "packages" and "libraries", but it is managed on a per-project basis and installed in a directory of your project (for example, vendor). By default it will not install anything globally. Therefore, this is only a dependency management.

PHP Administration Tools Composer Installation & testing

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.