paulbalandan / codeigniter4-installer
CodeIgniter4的完整安装程序。
v1.0.0
2020-07-15 14:30 UTC
Requires
- php: ^7.2.5
- ext-mbstring: *
- ext-zip: *
- guzzlehttp/guzzle: ^7.0
- symfony/console: ^5.1
- symfony/filesystem: ^5.1
- symfony/process: ^5.1
Requires (Dev)
- friendsofphp/php-cs-fixer: ^2.16
- phpunit/phpunit: ^8.5
This package is auto-updated.
Last update: 2024-08-29 05:09:38 UTC
README
安装
使用Composer,全局安装此安装程序,请使用以下命令
composer global require paulbalandan/codeigniter4-installer
用法
现在您已全局安装了安装程序,您可以在终端中使用codeigniter4 new [name]
来调用脚手架,其中name
是目录名称。
这里的name
是可选的。如果您没有提供,它将默认为当前工作目录。如果提供了name
,它将相对于当前工作目录解析。
运行codeigniter4 new --help
以获取完整选项。
选项
--config
- 提供默认配置值的路径。这将相对于$directory
或cwd
解析--dev
- 安装最新的CI4开发者版本作为框架--with-git
- 在目录中初始化空的Git仓库--with-gitflow
- 使用GitFlow初始化Git仓库。这隐式包含了--with-git
选项。-f|--force
- 在现有目录上强制安装。
注意:这些选项默认不启用。您应提供自己的选项集。