laravel/laravel的composer.json

name: The name of the package. It consists of vendor name and project name, separated by /

description: A short description of the package. Usually this is just one line long

keywords: An array of keywords that the package is related to. These can be used for searching and filtering

license: The license of the package

type: The type of the package, Package types are used for custom installation logic.
project: This denotes a project rather than a library. For example application shells like the Symfony

require: Lists packages required by this package

require-dev: Lists packages required for developing this package, or running tests, etc. The dev requirements of the root package are installed by default

autoload: Autoload mapping for a PHP autoloader.
Currently PSR-0 autoloading, PSR-4 autoloading, classmap generation and files includes are supported.

PSR-4: Under the psr-4 key you define a mapping from namespaces to paths, relative to the package root. Namespace prefixes must end in \\

Classmap:The classmap references are all combined, during install/update, into a single key => value array which may be found in the generated file vendor/composer/autoload_classmap.php

autoload-dev: This section allows to define autoload rules for development purposes
Classes needed to run the test suite should not be included in the main autoload rules to avoid polluting the autoloader in production and when other people use your package as a dependency

scripts: Composer allows you to hook into various parts of the installation process through the use of scripts
post-root-package-install: occurs after the root package has been installed, during the create-project command
post-create-project-cmd: occurs after the create-project command has been executed
post-install-cmd: occurs after the install command has been executed with a lock file present
post-update-cmd: occurs after the update command has been executed, or after the install command has been executed without a lock file present

config: A set of configuration options. It is only used for projects
preferred-install: This option allows you to set the install method Composer will prefer to use

转载于:https://www.cnblogs.com/qike/p/5784960.html

  • 0
    点赞
  • 0
    收藏
    觉得还不错? 一键收藏
  • 0
    评论
回答: 这个问题是关于使用Composer安装Laravel框架时出现的依赖冲突的错误。根据引用\[1\],问题1是因为laravel/framework要求使用dragonmantank/cron-expression的版本在^3.3.2,但实际上安装的版本不符合这个要求。解决这个问题的方法是切换回国外镜像,可以使用命令"composer config -g repo.packagist composer https://packagist.org"来切换。引用\[2\]中的问题是因为laravel/framework要求使用league/flysystem的版本在^1.1,但是缺少了PHP的fileinfo扩展。解决这个问题的方法是安装或启用PHP的fileinfo扩展。引用\[3\]中的问题是因为缺少composer.lock文件,导致无法解析依赖关系。解决这个问题的方法是根据官方文档(https://getcomposer.org/install)安装composer,并使用composer install命令来安装依赖项。 #### 引用[.reference_title] - *1* *3* [composer install报错](https://blog.csdn.net/h_ss4/article/details/131414694)[target="_blank" data-report-click={"spm":"1018.2226.3001.9630","extra":{"utm_source":"vip_chatgpt_common_search_pc_result","utm_medium":"distribute.pc_search_result.none-task-cask-2~all~insert_cask~default-1-null.142^v91^control_2,239^v3^insert_chatgpt"}} ] [.reference_item] - *2* [composer安装laravel报错 Your requirements could not be resolved](https://blog.csdn.net/qq_36672681/article/details/117124151)[target="_blank" data-report-click={"spm":"1018.2226.3001.9630","extra":{"utm_source":"vip_chatgpt_common_search_pc_result","utm_medium":"distribute.pc_search_result.none-task-cask-2~all~insert_cask~default-1-null.142^v91^control_2,239^v3^insert_chatgpt"}} ] [.reference_item] [ .reference_list ]
评论
添加红包

请填写红包祝福语或标题

红包个数最小为10个

红包金额最低5元

当前余额3.43前往充值 >
需支付:10.00
成就一亿技术人!
领取后你会自动成为博主和红包主的粉丝 规则
hope_wisdom
发出的红包
实付
使用余额支付
点击重新获取
扫码支付
钱包余额 0

抵扣说明:

1.余额是钱包充值的虚拟货币,按照1:1的比例进行支付金额的抵扣。
2.余额无法直接购买下载,可以购买VIP、付费专栏及课程。

余额充值