一聚教程网:一个值得你收藏的教程网站

热门教程

php中Composer 安装与使用教程

时间:2022-06-24 16:21:51 编辑:袖梨 来源:一聚教程网

下午在安装 Laravel 框架过程中,遇到了不少问题,因为 Laravel 的安装依赖于 composer,这里就先介绍一下 composer 的安装方法:

安装方法:

 代码如下 复制代码

#下载
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这样就可以使用 composer 了。
[root@localhost www.111com.net]# composer
Zend Guard Loader requires Zend Engine 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 Loader.

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

Usage:
  [options] command [arguments]

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

热门栏目