Changelog

PHP Icon changelog.com

Phake: M/Rake for PHP

logged by @logbot 2010-04-03T18:58:05Z permalink #php

It’s always refreshing to see language communities learning from eachother. PHP now as its own clone of GNU Make and Ruby’s Rake: Phake.

Automation Ahoy!

Phake supports task grouping, before/after blocks, and task descriptions. Requires PHP >= 5.3 (for closures).

Here’s a simple task definiton:

task('dependency1', function() {
      echo "i will run first!n";
});

task('dependency2', function() {
  echo "i will run second!n";
});

task('task_name', 'dependency1', dependency2', function() {
      echo "i will run last!n";
});

And to run the task, simply:

./phake task_name

[Source on GitHub]

0:00 / 0:00