定制 salaros/wp-cli-salts-command 二次开发

按需修改功能、优化性能、对接业务系统,提供一站式技术支持

邮箱:yvsm@zunyunkeji.com | QQ:316430983 | 微信:yvsm316

salaros/wp-cli-salts-command

Composer 安装命令:

composer require salaros/wp-cli-salts-command

包简介

Manage salts for your WordPress installation

README 文档

README

Package license Packagist type Packagist downloads Monthly Downloads Latest Stable Version composer.lock

Manage salts for your WordPress installation

Output salts to STDOUT

wp salts generate # defaults to --format=php
wp salts generate --format=env
wp salts generate --format=yaml

This will grab new salts from the WordPress Salt API and output it to the STDOUT

Output salts to a file

PHP file

wp salts generate --file=/absolute/path/to/file.php

This will output the salts to a file. Because the file contains the complete define() code the salts will be set by a simple require somewhere in your wp-config.php

Environment variable file

wp salts generate --file=/absolute/path/to/.env

This will output the salts as shell environment variables (MY_VAR=VALUE). Useful for projects that load configurations from .env files.

Yaml config file

wp salts generate --file=/absolute/path/to/file.yaml

This will output the salts as Yaml config file.

Other examples

Generally the file format can be desumed from file name / extension. However one can enforce Yaml format when it can't be detected automatically

wp salts generate --format=yaml --my.config

One could also append want to append some custom WordPress salts, such as WP_CACHE_KEY_SALT used by Memcached Object Cache, WP Redis and other plugins:

wp salts generate --format=env --append=WP_CACHE_KEY_SALT,OTHER_USEFUL_SALT

AUTH_KEY='|p/>=h19^l/tFT=_e yOu+_@Zs?VMUObx@@Gx2SD/rPFdb(?jBbpE~w+l-[<ie,o'
SECURE_AUTH_KEY='*G|+h:%xMCY.ALkJ)72/0Y=0^5A^}PS:~xb7-:Y+_##D|sg*uU{o6(w<h>,g|2`o'
LOGGED_IN_KEY='A>r0rY]%#x1CvPqzFN[ (pTRNt1|p[RiFooj<s&w)%<+tI#z/x8Xos%a>_C ]-w>'
NONCE_KEY='SoBdx~Nh+FXhniyc7?oTY;|rjvLsTa!yV:Z-_z*Bs)`6z53ld^B4vVdqVJ&ass/u'
AUTH_SALT='hcSd}*.rYZ9g^<1wYGhs_xv<soGS/$} 4*#rsT?Nh!o$elz394!+I5>LPl)AmfLL'
SECURE_AUTH_SALT='bg>!x{vYz<N|h}uxcE5fMl8$5l$0yJ#t3c<z#q4F7]UU0OUJ75(jd1MB2}A(c9r`'
LOGGED_IN_SALT='5gsbcBPv;M`Ii)c}fZ{>D$4n0=|_5Lu#+)UNw`L`dF$w/`uP{&*xdI9&[`j^Q*3<'
NONCE_SALT='S07L}$OO*<R$)hWtawhST{Uqe!ZE0M3!`W-gz6]fY4y9joX9o;]+sS[O$_`)JiiO'
# >>> Note these two additional WordPress salts below
WP_CACHE_KEY_SALT='dzwdcllV*h/@BG/Hh~@tRM_!aV~d.55/o(eoC= E&LBJjG{V1~xl?nN<DJ>jobsp'
OTHER_USEFUL_SALT='hrRt.Ldx&=ywXCCU;5,sOkq ZaAUz7vz3lMp?~,L.EcgpdJ<c_T$4GnAYtKkVhO}'

salaros/wp-cli-salts-command 适用场景与选型建议

salaros/wp-cli-salts-command 是一款 基于 PHP 开发的 Composer 扩展包,目前已累计 1.02k 次下载、GitHub Stars 达 3, 最近一次更新时间为 2017 年 10 月 20 日, 在 PHP 生态内属于活跃度较高的组件。

我们在过去多个企业项目中使用过 salaros/wp-cli-salts-command 或与其功能相近的方案,如果你在选型或落地过程中遇到问题,例如 版本兼容、二次改造、私有化封装、与内部系统对接、生产 BUG 排查,欢迎联系我们协助评估。

围绕 salaros/wp-cli-salts-command 我们能提供哪些服务?
定制开发 / 二次开发

基于 salaros/wp-cli-salts-command 在你已有业务上做功能扩展、字段裁剪、UI 适配、与内部账号 / 权限 / 日志系统的深度对接。

BUG 修复 & 性能优化

线上偶发问题、内存泄漏、慢查询、并发异常等排查修复;针对高流量场景做缓存、队列、索引层面的调优。

项目外包 & 长期维护

承接完整的项目从需求 → 设计 → 开发 → 上线 → 长期运维;也可按月提供技术保姆服务。

yvsm@zunyunkeji.com QQ:316430983 微信:yvsm316 西安尊云信息科技 · 专注 PHP / Go / 分布式系统研发

统计信息

  • 总下载量: 1.02k
  • 月度下载量: 0
  • 日度下载量: 0
  • 收藏数: 3
  • 点击次数: 7
  • 依赖项目数: 0
  • 推荐数: 0

GitHub 信息

  • Stars: 3
  • Watchers: 0
  • Forks: 6
  • 开发语言: PHP

其他信息

  • 授权协议: MIT
  • 更新时间: 2017-10-20