gpt4 book ai didi

composer-php - 添加多个 Composer 包

转载 作者:行者123 更新时间:2023-12-04 02:34:36 27 4
gpt4 key购买 nike

我正在使用 Composer 使用以下语法安装多个软件包:

{
"require": {
"aws/aws-sdk-php": "2.*",
"vimeo/vimeo-api" : "1.1.*",
"phpoffice/phpexcel": "dev-master"
}

}

以上工作正常,但现在我想通过 Composer 添加tcpdf。我找到了这个代码 here但我不确定如何与我当前的需求相结合。我尝试过的一件事是将它添加到最后,但我担心它会开始删除我当前的包。
{ "name": "tecnick.com/tcpdf",
"version": "6.2.11",
"homepage": "http://www.tcpdf.org/",
"type": "library",
"description": "TCPDF is a PHP class for generating PDF documents and barcodes.",
"keywords": ["PDF","tcpdf","PDFD32000-2008","qrcode","datamatrix","pdf417","barcodes"],
"license": "LGPLv3",
"authors": [
{
"name": "Nicola Asuni",
"email": "info@tecnick.com",
"homepage": "http://nicolaasuni.tecnick.com"
}
],
"require": {
"php": ">=5.3.0"
},
"autoload": {
"classmap": [
"fonts",
"config",
"include",
"tcpdf.php",
"tcpdf_parser.php",
"tcpdf_import.php",
"tcpdf_barcodes_1d.php",
"tcpdf_barcodes_2d.php",
"include/tcpdf_colors.php",
"include/tcpdf_filters.php",
"include/tcpdf_font_data.php",
"include/tcpdf_fonts.php",
"include/tcpdf_images.php",
"include/tcpdf_static.php",
"include/barcodes/datamatrix.php",
"include/barcodes/pdf417.php",
"include/barcodes/qrcode.php"
]
}

最佳答案

您可以从命令行要求许多包,例如:

composer require barryvdh/laravel-debugbar barryvdh/laravel-snappy fideloper/proxy

根据您的 Composer 规范,将需要所有软件包。

关于composer-php - 添加多个 Composer 包,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/32185451/

27 4 0
Copyright 2021 - 2024 cfsdn All Rights Reserved 蜀ICP备2022000587号
广告合作:1813099741@qq.com 6ren.com