2017 © Pedro Peláez
 

library replace-task

Replace task for Soy

image

soy-php/replace-task

Replace task for Soy

  • Friday, November 20, 2015
  • by rskuipers
  • Repository
  • 1 Watchers
  • 0 Stars
  • 582 Installations
  • PHP
  • 1 Dependents
  • 0 Suggesters
  • 1 Forks
  • 0 Open issues
  • 3 Versions
  • 0 % Grown

The README.md

Replace Task

Latest Stable Version Total Downloads Latest Unstable Version License, (*1)

Introduction

This is a replace task for Soy, you can use this task to replace strings in files based on a specific config., (*2)

Usage

Include soy-php/replace-task in your project with composer:, (*3)

$ composer require soy-php/replace-task

Then in your recipe you can use the task as follows:, (*4)

<?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;

The Versions

20/11 2015

dev-develop

dev-develop

Replace task for Soy

  Sources   Download

MIT

The Requires

 

20/11 2015

0.1.1

0.1.1.0

Replace task for Soy

  Sources   Download

MIT

The Requires

 

16/11 2015

0.1.0

0.1.0.0

Replace task for Soy

  Sources   Download

MIT

The Requires