technodelight/php-cli-editor-input
Composer 安装命令:
composer require technodelight/php-cli-editor-input
包简介
Small and simple intermediate layer between console editors (like vim) and your PHP console application
README 文档
README
Small and simple intermediate layer between console editors (like vim) and your PHP console application
Usage
use Technodelight\CliEditorInput\AdaptableFactoryWithPreference;
$editor = AdaptableFactoryWithPreference::build('vim');
$title = 'Title will be a commented out section as first line in the editor';
$content = 'Initial content, which can be edited';
$content = $editor->edit($title, $content, $stripComments = true);
// $content will contain all lines read back from the editor, excluding commented out lines
// each line starting with # is considered as comment (regex '/^#/')
统计信息
- 总下载量: 772
- 月度下载量: 0
- 日度下载量: 0
- 收藏数: 0
- 点击次数: 4
- 依赖项目数: 0
- 推荐数: 0
其他信息
- 授权协议: MIT
- 更新时间: 2019-07-03