kk/chuck-command
最新稳定版本:1.3.0
Composer 安装命令:
composer require kk/chuck-command
包简介
Simple Symfony2 Bundle displaying a random Chuck Norris fact for every console command.
README 文档
README
Simple and stupid Symfony2 Bundle displaying a random Chuck Norris fact after every console command.
##NEW
version 1.3.0:
- new configuration option : environments
version 1.2.0:
- fixed ConnectException issue
version 1.1.0:
- added support for Symfony 3
version 1.0.0:
- Guzzle 6 implementation
- chuck:fact console command to get a fact whenever you need one
- timeout configuration parameter
##Installation
just run :
composer require kk/chuck-command composer update
and register the bundle in your app/AppKernel.php :
// app/AppKernel.php class AppKernel extends Kernel { public function registerBundles() { $bundles = array( // ... new KK\Labs\ChuckConsoleBundle\KKLabsChuckConsoleBundle(), ); // ... } }
##Usage As simple as using any app/console command.
In case of emergency, can also get a fact when you really need one :
app/console chuck:fact #output : Fact: Chuck Norris doesn't consider it sex if the woman survives. app/console chuck:fact Your boss #output : Fact: Your boss doesn't consider it sex if the woman survives.
##Customization in config.yml file :
kk_labs_chuck_console: who: #your first name or anyone's first name first_name: "Your first name" #your last name or anyone's last name last_name: "Your last name" #after n seconds, don't wait for response from Chuck API timeout: 5 #environments enabled (default : 'dev') environments: ['dev', 'prod', 'custom']
##API Credit API Credit goes to The Internet Chuck Norris Database
统计信息
- 总下载量: 523
- 月度下载量: 0
- 日度下载量: 0
- 收藏数: 7
- 点击次数: 1
- 依赖项目数: 0
- 推荐数: 0
其他信息
- 授权协议: MIT
- 更新时间: 2015-04-19