wecodemore/wp-cli-composer
Composer 安装命令:
composer require wecodemore/wp-cli-composer
包简介
Adds bash autocompletion for WP-CLI
README 文档
README
WP-CLI Bash Autocomplete
Usage as Composer post-package-install script. Adds bash autocompletion when WP-CLI gets installed using Composer. This package mostly is a convenience package that should make the build process easier.
This package needs 20 seconds to set up. Zero maintenance.
How To
Install WP-CLI using Composer. your project. Simply add WP-CLI on top of that:
"require" : { "wp-cli/wp-cli" : "~1.0", "wecodemore/wp-cli-composer" : "~2.0" },
Then setup the script
"scripts" : {
"post-install-cmd" : [
"WCM\\WPCLI\\Autocomplete\\Setup::install"
]
},
Finally you will need to define a pointer to tell the post package installer where wp-cli was
installed to. In most cases this simply will be your users home directory/~, but you can
define custom locations as well.
"extra" : {
"wordpress-install-dir" : "wp",
"bash-profile-dir" : "/home/youruser"
}
FAQ
Q: Shall I install it from GitHub or from Packagist?
A: The package is on Packagist and auto updated from GitHub instantly (using WebHooks).
Q: If I ran this twice by accident, do I then have the scripts appended twice?
A: No, the script is smart enough to care about that and appends itself only once.
Q: What happens if I'm not sure and the bash profile location is probably wrong?
A: The script does only check if the directory exists and not if
you got a .bash_profile file there. If there is none, it will attempt to create one for you.
Q: What version should I refer to in my composer.json?
A: We use semantic versioning, so you will want to stay up to date with major versions.
Q: Should I visit Vienna?
A: Yes. You won't regret it. Ping me and I'll grab a coffee with you.
wecodemore/wp-cli-composer 适用场景与选型建议
wecodemore/wp-cli-composer 是一款 基于 PHP 开发的 Composer 扩展包,目前已累计 4.22k 次下载、GitHub Stars 达 9, 最近一次更新时间为 2014 年 10 月 15 日, 在 PHP 生态内属于活跃度较高的组件。
它主要适用于以下技术方向: 「plugins」 「composer」 「wordpress」 「profile」 「wp」 「bash」 等业务场景。在实际项目中,围绕这些方向常见需要落地的问题包括:接口对接、性能调优、并发安全、与既有框架(Laravel / ThinkPHP / Yii / Webman 等)的兼容适配,以及生产环境的日志埋点与稳定性保障。
我们在过去多个企业项目中使用过 wecodemore/wp-cli-composer 或与其功能相近的方案,如果你在选型或落地过程中遇到问题,例如 版本兼容、二次改造、私有化封装、与内部系统对接、生产 BUG 排查,欢迎联系我们协助评估。
基于 wecodemore/wp-cli-composer 在你已有业务上做功能扩展、字段裁剪、UI 适配、与内部账号 / 权限 / 日志系统的深度对接。
线上偶发问题、内存泄漏、慢查询、并发异常等排查修复;针对高流量场景做缓存、队列、索引层面的调优。
承接完整的项目从需求 → 设计 → 开发 → 上线 → 长期运维;也可按月提供技术保姆服务。
与 wecodemore/wp-cli-composer 相关的其它包
同方向 / 同关键字的高下载量 PHP Composer 包推荐,方便对比选型:
This composer plugin enables installation of GravityForms WordPress plugin and its addons.
Simple ASCII output of array data
Generate a Composer repository from installed WordPress plugins and themes.
An image upload package which provides lot of functions such as upload, resize, crop, rotate, delete.
dcat-admin plugins loginCaptcha.
统计信息
- 总下载量: 4.22k
- 月度下载量: 0
- 日度下载量: 0
- 收藏数: 9
- 点击次数: 11
- 依赖项目数: 1
- 推荐数: 0
其他信息
- 授权协议: MIT
- 更新时间: 2014-10-15