jundelleb/php-console-helper
Composer 安装命令:
composer require jundelleb/php-console-helper
包简介
A simple command-line helper functions built for developers.
README 文档
README
A simple command-line helper functions built for developers. This package uses the following libraries:
- fzaninotto's Faker
Getting Setup
composer global require jundelleb/php-console-helper- Make sure to place the
~/.composer/vendor/bindirectory (or the equivalent directory for your OS) in your PATH so thepchexecutable can be located by your system.
Helpers
Faker(faker)Converter(convert)
Basic Usage
-
Generate random name:
pch faker nameOutput: Isom Medhurst -
Generate a sentence with 10 words:
pch faker sentence --params=10Output: Aut qui et eum itaque voluptatibus qui rem sit blanditiis.
Please visit Faker for complete lists of available formatters.
-
Convert input string to md5:
pch convert:md5 testOutput: 098f6bcd4621d373cade4e832627b4f6 -
Convert input string to base64 encoded:
pch convert:base64 testOutput: dGVzdA== -
Decode base64 encoded string:
pch convert:base64 dGVzdA== --decodeOutput: test
Enjoy! :)
统计信息
- 总下载量: 27
- 月度下载量: 0
- 日度下载量: 0
- 收藏数: 0
- 点击次数: 0
- 依赖项目数: 0
- 推荐数: 0
其他信息
- 授权协议: MIT
- 更新时间: 2016-03-14