Skip to content

Latest commit

History

9 Commits

Folders and files

NameName
Last commit message
Last commit date

Repository files navigation

Replace Task

Latest Stable VersionTotal DownloadsLatest Unstable VersionLicense

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;

About

Replace task for Soy

Resources

Stars

0 stars

Watchers

1 watching

Forks

Releases

Packages

Contributors

Languages