使用 Composer 安装 CodeIgniter 4 问题 [英] CodeIgniter 4 problem installing with composer
本文介绍了使用 Composer 安装 CodeIgniter 4 问题的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!
问题描述
我在尝试通过 Composer 在本地服务器 (xampp) 上安装 CodeIgniter 4 时遇到问题
I'm having problems trying to install CodeIgniter 4 via Composer, on a local server (xampp)
抛出我的代码如下:
PS C:UsersPuercoRico> cd D:xampphtdocs
PS D:xampphtdocs> composer create-project codeigniter4/appstarter ci4 -s rc
Installing codeigniter4/appstarter (4.0.0-rc.4)
- Installing codeigniter4/appstarter (4.0.0-rc.4): Loading from cache
Created project in ci4
Loading composer repositories with package information
Updating dependencies (including require-dev)
Your requirements could not be resolved to an installable set of packages.
Problem 1
- codeigniter4/framework v4.0.0-rc.3 requires ext-intl * -> the requested PHP extension intl is missing from your system.
- codeigniter4/framework v4.0.0-rc.2.1 requires ext-intl * -> the requested PHP extension intl is missing from your system.
- codeigniter4/framework v4.0.0-rc.2 requires ext-intl * -> the requested PHP extension intl is missing from your system.
- codeigniter4/framework v4.0.0-rc.1 requires ext-intl * -> the requested PHP extension intl is missing from your system.
- codeigniter4/framework 4.0.0-rc.4 requires ext-intl * -> the requested PHP extension intl is missing from your system.
- Installation request for codeigniter4/framework ^4@rc -> satisfiable by codeigniter4/framework[4.0.0-rc.4, v4.0.0-rc.1, v4.0.0-rc.2, v4.0.0-rc.2.1, v4.0.0-rc.3].
To enable extensions, verify that they are enabled in your .ini files:
- D:xamppphpphp.ini
You can also run `php --ini` inside terminal to see which files are used by PHP in CLI mode.
我使用的php版本是7.4.1
The version of php that I am using is 7.4.1
知道错误可能是什么或我如何修复它.
Any idea what the error may be or how I can fix it.
推荐答案
您的 PHP 缺少 intl 扩展.它对于格式化货币、数字和日期/时间以及符合 UCA 的排序规则、消息格式和文本规范化等很有用.
Your PHP is missing intl extension. It is useful for formatting currency, number and date/time as well as UCA-conformant collations, for message formatting and normalizing text..etc.
查看 Codeignitor 4 [文档][1]:
Check out Codeignitor 4 [Documentation][1]:
按照步骤在XAMPP中安装它-
Follow the steps to install it in XAMPP -
- 打开 [xampp_folder_path]/php/php.ini 进行编辑.
- 搜索 ;extension=intl 并删除 ;.
- 保存 php.ini 文件并重新启动 Apache.
这篇关于使用 Composer 安装 CodeIgniter 4 问题的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!
查看全文