luoxiaojun1992/yii2-tinker
最新稳定版本:v1.0.1
Composer 安装命令:
composer require luoxiaojun1992/yii2-tinker
包简介
Yii2 Tinker
README 文档
README
Features
A console debugger like laravel artisan tinker
- REPL
- Powerful Dumper
Installation
composer require "luoxiaojun1992/yii2-tinker:*"
Configuration
Don't need any configuration.
If the command doesn't work, add the following configuration manually.
config/console.php
...
$config = [
...
'controllerMap' => [
...
'tinker' => [ // Tinker command line.
'class' => \Yii2Tinker\TinkerController::class,
],
...
],
...
];
...
Usage
execute ./yii tinker in your application's root folder
Example:
Psy Shell v0.8.1 (PHP 7.0.14 — cli) by Justin Hileman
>>> Yii::$app->params['adminEmail']
=> "admin@example.com"
>>> dd([1=>'a', 2=>'b', 3=>'c'])
array:3 [
1 => "a"
2 => "b"
3 => "c"
]
>>>
统计信息
- 总下载量: 66.53k
- 月度下载量: 0
- 日度下载量: 0
- 收藏数: 17
- 点击次数: 1
- 依赖项目数: 0
- 推荐数: 0
其他信息
- 授权协议: apache-2.0
- 更新时间: 2017-01-19