soy-php / replace-task
Replace task for Soy
Installs: 609
Dependents: 1
Suggesters: 0
Security: 0
Stars: 0
Watchers: 1
Forks: 1
Open Issues: 0
pkg:composer/soy-php/replace-task
Requires
- soy-php/soy: >=0.1.0
This package is not auto-updated.
Last update: 2025-10-12 00:36:12 UTC
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;