soy-php/replace-task
最新稳定版本:0.1.1
Composer 安装命令:
composer require soy-php/replace-task
包简介
Replace task for Soy
README 文档
README
Introduction
This is a replace task for Soy, you can use this task to replace strings in files based on a specific config.
Usage
Include soy-php/replace-task in your project with composer:
$ composer require soy-php/replace-task
Then in your recipe you can use the task as follows:
<?php $recipe = new \Soy\Recipe(); $recipe->component('default', function (\Soy\Replace\ReplaceTask $replaceTask) { $replaceTask ->setReplacements([ 'task' => 'dog', ]) ->setSource('README.md') ->setDestination('DONTREADME.md') ->run(); }); return $recipe;
统计信息
- 总下载量: 609
- 月度下载量: 0
- 日度下载量: 0
- 收藏数: 0
- 点击次数: 0
- 依赖项目数: 1
- 推荐数: 0
其他信息
- 授权协议: MIT
- 更新时间: 2015-11-01