PHP code example of molovo / phake

1. Go to this page and download the library: Download molovo/phake library. Choose the download type require.

2. Extract the ZIP file and open the index.php.

3. Add this code to the index.php.
    
        
<?php
require_once('vendor/autoload.php');

/* Start to develop here. Best regards https://php-download.com/ */

    

molovo / phake example snippets




task('default', 'echo "Hello World!"');



task('my_awesome_task', 'echo "Doing awesome things..."');



task('test', [
  'echo "Starting Tests"',
  './my_tests.sh',
  'echo "Tests finished."'
]);



task('php_example', function () {
  my_php_function(); // Your PHP code is available here
});



task('task_one', 'echo "Hello World!"');

task('task_two', function () {
  run('task_one');
});



group('my_group', function() {
  task('task_one', 'echo "Task One!"');
  task('task_two', 'echo "Task Two!"');
})



group('group', function() {
  task('first_task', 'echo "I\'m in the parent group"');

  group('subgroup', function() {
    task('second_task', 'echo "I\'m in the subgroup"');
  });
});