rbdwllr/wordpress-salts-generator
Composer 安装命令:
composer require rbdwllr/wordpress-salts-generator
包简介
A key and salts generator for WordPress that works with both wp-config and .env files.
关键字:
README 文档
README
A key and salts generator for WordPress that works with both wp-config and .env files.
- This library is for use with a composer setup of WordPress.
- Keys and salts are generated via the command line.
Installation
To install this library either use the composer require command.
composer require rbdwllr/wordpress-salts-generator 0.1.*
Or add it straight to your composer.json file and run composer update.
require: {
"rbdwllr/wordpress-salts-generator": "0.1.*"
}
Commands
Their are two simple commands available for generating the keys and salts.
// Generates traditional WordPress 'define' keys and salts.
vendor/bin/wpsalts traditional
// Generates keys and salts that can be used in a .env file.
vendor/bin/wpsalts dotenv
If you don't add a command the vendor/bin/wpsalts command it will output the traditional WordPress salts and keys.
Append to File
If you would like to append the keys directly to the end of an .env file you can use the --clean flag as follows.
vendor/bin/wpsalts dotenv --clean >> .env
The clean flag removes any messaging and formatting around the output, and the >> operator appends the output to the end of the .env file on a new line.
Output Examples
Traditional WordPress
Copy and paste these keys and salts into your wp-config.php file.
define('AUTH_KEY', 'dva\uhm"cDc<$U5E> )euW<UzK{ WQ7tt;j:paBPyY16<&f;b|n]|pj9%|=xRA;'');
define('SECURE_AUTH_KEY', 'Q)hZ.Hp]meJI.X-:s+Cp2o4:wafkbxO}mfyp??e">bqHRC)|o(sB)9G-n4O2VJ;!');
define('LOGGED_IN_KEY', 'kOq )c"=0>E} c;?PwD;lt0(N9N>%,#OS"]3>,!@[&]]i>G90ucaBxz2\hh]}I@Z');
define('NONCE_KEY', 't>ZZepdu/(8>4|3k5covc7R'":*rhyY>{eZjK4HB:@i5l/d8XTTc(P.v(H|Q/mg4');
define('AUTH_SALT', '{B>CWa$zjM+KN(,(-4yD(pFfdeF 07mPp1xOMkL bDm!X>}p){~(J4\~-AO+0-ZV');
define('SECURE_AUTH_SALT', 'lr'_2T^{O/<LK v<:fa^Sw-i]5\t yt.:I#?kSa(l 8A7H%/!E(c1dzX(r[}3YpB');
define('LOGGED_IN_SALT', '%^]P]dVVJ"Pgd[tW-.}mMvx..yRW+99E7yCVb:PYA-k1[2W0LHM^fG'XtPsuGF"y');
define('NONCE_SALT', ' 6quTRjx9eQ"6:$QrV]!q"8%38#NGh>ODwU:tw8&nU^Ci}_[`ItiWK]e|n t<f /');
DotEnv
Copy and paste these keys and salts into your .env file.
AUTH_KEY = 'EXOxcC~nqA{m{B?pw$$G^kIll&j@7K~\+rGaD!84>J^C2H.w"U\Ut<55\&W[ IdS'
SECURE_AUTH_KEY = 'z =Q9?I),/%7`E0jEM(#5VV'S NdLFYL<e2-jSyQoV*Jzxbs3`oIs;pZHcEH"2L&'
LOGGED_IN_KEY = 'H #u*_!('^[s>=4?$.s3?yo9KJk8Lv-Dn O6,ZCE>aFh-5KaXbBzV9#^t9rJuTgt'
NONCE_KEY = 'bdt.I)jh6Nz/e,|S-QepePTSd@93E$vk%oX1yd"A,DNExX+v&;>2>^Ni$G%l&YC9'
AUTH_SALT = '$81GB@i@ 0qW@~<<M$j`>yxQ )Q56PyJ6ukOnH]@_:}x-/BAm-Io]=CyJU^T(|7%'
SECURE_AUTH_SALT = '/k4O1L)q@7wJ^~;b`"U6X9s,~7iRAc8v-ypMOM|X.yN=0"gVh|x~$V +Mw(eZ33T'
LOGGED_IN_SALT = '_o_jpvW#iq}l-'Kc&vU}Tht\w,-:462z8=;!x3 =1NyD&[>k^EAZjm(F#=X+T(G''
NONCE_SALT = '.e1j7;9aWlqoBRdLEe?Vh9{m8V7:<PlAFa@,,(2o5En)^%x*[i\6sq[=*b#+-A0='
Author
Rob Waller @RobDWaller
rbdwllr/wordpress-salts-generator 适用场景与选型建议
rbdwllr/wordpress-salts-generator 是一款 基于 PHP 开发的 Composer 扩展包,目前已累计 49.08k 次下载、GitHub Stars 达 9, 最近一次更新时间为 2018 年 04 月 03 日, 在 PHP 生态内属于活跃度较高的组件。
它主要适用于以下技术方向: 「cli」 「wordpress」 「keys」 「salts」 等业务场景。在实际项目中,围绕这些方向常见需要落地的问题包括:接口对接、性能调优、并发安全、与既有框架(Laravel / ThinkPHP / Yii / Webman 等)的兼容适配,以及生产环境的日志埋点与稳定性保障。
我们在过去多个企业项目中使用过 rbdwllr/wordpress-salts-generator 或与其功能相近的方案,如果你在选型或落地过程中遇到问题,例如 版本兼容、二次改造、私有化封装、与内部系统对接、生产 BUG 排查,欢迎联系我们协助评估。
基于 rbdwllr/wordpress-salts-generator 在你已有业务上做功能扩展、字段裁剪、UI 适配、与内部账号 / 权限 / 日志系统的深度对接。
线上偶发问题、内存泄漏、慢查询、并发异常等排查修复;针对高流量场景做缓存、队列、索引层面的调优。
承接完整的项目从需求 → 设计 → 开发 → 上线 → 长期运维;也可按月提供技术保姆服务。
与 rbdwllr/wordpress-salts-generator 相关的其它包
同方向 / 同关键字的高下载量 PHP Composer 包推荐,方便对比选型:
Vault for private keys and secret data
Laravel SQLite Foreign Keys Support
Slim starter / Slim skeleton package to boost your development with Slim framework
Laravel relationships with support for composite/multiple keys
Generates a trait to help ease the access of custom repo methods
Addon used to transforms a WordPress MVC project into a licensed product in seconds using WooCommerce License Keys API.
统计信息
- 总下载量: 49.08k
- 月度下载量: 0
- 日度下载量: 0
- 收藏数: 9
- 点击次数: 14
- 依赖项目数: 3
- 推荐数: 0
其他信息
- 授权协议: MIT
- 更新时间: 2018-04-03