redkiwi-nl/localconfig
Composer 安装命令:
composer require redkiwi-nl/localconfig
包简介
Creates a local config for any WordPress installation, based on a few questions you get asked.
README 文档
README
Quick links: Installing | Explanation | Examples | Contributing
Installing
Installing this package requires WP-CLI v0.23.0 or greater. Update to the latest stable release with wp cli update.
Once you've done so, you can install this package with wp package install redkiwi-nl/localconfig
Explanation
A fairly basic package that allows you to create a local config with at least the following constants:
'WP_ROOT_URL'
'WP_HOME'
'WP_SITEURL_APPEND'
'DB_NAME'
'DB_USER'
'DB_PASSWORD'
'DB_HOST'
'WP_CACHE'
These constants will be asked as a question, to fill in the php document after.
Whereas you can also add extra constants to be filled using [--fields=], which is comma separated
Examples
wp local-config create
wp local-config create --file=my_custom_local_config.php
wp local-config create --fields=extra_constant,another_constant
wp local-config create --fields=extra_constant,another_constant --fields_lowercase
Contributing
Code and ideas are more than welcome.
Please open an issue with questions, feedback, and violent dissent. Pull requests are expected to include test coverage.
统计信息
- 总下载量: 21
- 月度下载量: 0
- 日度下载量: 0
- 收藏数: 5
- 点击次数: 0
- 依赖项目数: 0
- 推荐数: 0
其他信息
- 授权协议: MIT
- 更新时间: 2016-06-07