Tutorial on composer installation and use in PHP

Source: Internet
Author: User
Tags chmod zend

In the afternoon in the installation of the Laravel framework process, encountered a lot of problems, because Laravel installation relies on composer, here is the first introduction composer installation method:

Installation method:

The code is as follows Copy Code

#下载
sudo curl-ss Https://getcomposer.org/installer | sudo php-d detect_unicode=off

#更改文件权限
sudo chmod a+x Composer.phar

#移动文件
sudo chmod a+x Composer.phar

#更新
sudo composer self-update so you can use composer.
[Root@localhost www.111cn.net]# composer
Zend Guard Loader requires Zend API version 220090626.
The Zend Engine API version 220121212 which is installed, is newer.
Contact Zend Technologies at Http://www.zend.com/for A later version of Zend Guard.

______
/ ____/___  ____ ___  ____  ____  ________  _____
/ /   / __ / __ `__ / __ / __ / ___/ _ / ___/
/ /___/ /_/ / / / / / / /_/ / /_/ (__  )  __/ /
____/____/_/ /_/ /_/ .___/____/____/___/_/
/_/
Composer version aa9c257f0efd1a54c93ba95282821a497bc15d75 2014-03-09 15:09:15

Usage:
[Options] command [arguments]

Options:
--help-h Display this help message.

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.