问题描述
我想开始学习Codeigniter
.但是似乎Codeigniter不支持通过Composer安装.当我在Google中搜索时,我发现了此链接.似乎Codeigniter不支持Composer创建的autoload.php文件.该文档描述了通过下载.zip归档文件进行的唯一安装.我不确定Codeigniter现在是否是一个不错的选择.是吗?
I would like to start learning Codeigniter
. But it seems that Codeigniter has not support for installation via Composer. When I search in Google I found this link. It seems that Codeigniter has not support for autoload.php file created by Composer. The documentation describes the only installation via downloading .zip archive. I am not sure if Codeigniter is a good choice now. Is it?
推荐答案
它在版本3中具有作曲家支持. Highlight = composer"rel =" noreferrer>您可以在application/config/config.php中设置的文档.
It has composer support in version 3. According to the documentation you can set in application/config/config.php .
$config['composer_autoload'] = TRUE; //around 134 line
它将在application/vendor
中搜索作曲家自动加载脚本.将composer.json
放在application(Codeigniter的应用程序文件夹,而不是根目录)文件夹中.然后运行composer init
,然后运行-composer install
.
It will search for composer autoload script inside application/vendor
. Place composer.json
inside application(Codeigniter's application folder, not the root) folder. Then run composer init
, and then - composer install
.
如果CI适合您,那么它是适合您工作的合适工具:)
And if CI fits you, then its right tool for your job:)
p.s.在这里 https://github.com/kenjis/codeigniter-composer-installer
这篇关于Codeigniter +作曲家的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持!