如何在 Debian 11 上安装 PHP Composer

omposer 是 PHP 编程的项目依赖管理器。Composer 提供了一种标准格式,用于通过下载项目所需的所有 PHP 包并为您管理它们来管理 PHP 软件的所有依赖项和所需的库。大多数现代 PHP 框架都使用它,例如Laravel、Drupal、Magento 和 Symfony。

现在我们在 Debian 系统上安装 Composer,你必须运行这个命令:

wget -O composer-setup.php https://getcomposer.org/installer

通过运行以下命令在目录中全局安装 Composer :/usr/local/bin

php composer-setup.php --install-dir=/usr/local/bin --filename=composer

验证安装的版本:

composer --version
微信公众号
手机浏览(小程序)

Warning: get_headers(): SSL operation failed with code 1. OpenSSL Error messages: error:14090086:SSL routines:ssl3_get_server_certificate:certificate verify failed in /mydata/web/wwwshanhubei/web/wp-content/themes/shanhuke/single.php on line 57

Warning: get_headers(): Failed to enable crypto in /mydata/web/wwwshanhubei/web/wp-content/themes/shanhuke/single.php on line 57

Warning: get_headers(https://static.shanhubei.com/qrcode/qrcode_viewid_2728.jpg): failed to open stream: operation failed in /mydata/web/wwwshanhubei/web/wp-content/themes/shanhuke/single.php on line 57
0
分享到:
没有账号? 忘记密码?