composer create-project yii2-starter-kit/yii2-starter-kit myproject.com
导致错误
Problem 1 - The requested PHP extension ext-intl * is missing from your system. Install or enable PHP's intl extension. Problem 2 - Installation request for league/uri 5.3.0 -> satisfiable by league/uri[5.3.0]. - league/uri 5.3.0 requires ext-intl * -> the requested PHP extension intl is missing from your system. Problem 3 - Installation request for league/uri-components 1.8.2 -> satisfiable by league/uri-components[1.8.2]. - league/uri-components 1.8.2 requires ext-intl * -> the requested PHP extension intl is missing from your system. Problem 4 - Installation request for league/uri-hostname-parser 1.1.1 -> satisfiable by league/uri-hostname-parser[1.1.1]. - league/uri-hostname-parser 1.1.1 requires ext-intl * -> the requested PHP extension intl is missing from your system. Problem 5 - Installation request for league/uri-manipulations 1.5.0 -> satisfiable by league/uri-manipulations[1.5.0]. - league/uri-manipulations 1.5.0 requires ext-intl * -> the requested PHP extension intl is missing from your system. Problem 6 - league/uri 5.3.0 requires ext-intl * -> the requested PHP extension intl is missing from your system. - trntv/yii2-glide 1.2.2 requires league/uri ^5.0 -> satisfiable by league/uri[5.3.0]. - Installation request for trntv/yii2-glide 1.2.2 -> satisfiable by trntv/yii2-glide[1.2.2]. To enable extensions, verify that they are enabled in your .ini files: - C:\xampp\php\php.ini
问题是,尽管完全按照文档https://github.com/yii2-starter -...的方式通过Docker中的composer create-project命令创建Yii 2入门工具包项目,但仍在严格按照文档进行操作时]] >使用composer create-project命令被列为创建项目的可用选项之一但是,在docker内部使用它而不需要主机系统具有所有依赖项时,更好的方法是通过git检索文件
git clone https://github.com/yii2-starter-kit/yii2-starter-kit.git
删除项目的git日志的.git文件夹,或忽略初始错误[随后使用内部内部使用内部docker composer命令/环境的以下命令安装项目依赖项
composer run-script docker:build
因为该环境已为包含所有此类依赖库而特别地预先准备,并且完全防止了此类错误