Skip to content

jonhattan/drush-invoker

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

3 Commits
 
 
 
 
 
 
 
 

Repository files navigation

PHP class that invokes drush commands and allows to obtain the output (and logs) in a clean way.

Example

<?php
$alias = '@com.example';
$command = 'status';
$options = array();
$arguments = array();

$drush = \DrushInvoker\DrushInvoker::invoke($alias, 'status', $options, $arguments);
$output = $drush->getOutput();

foreach ($drush->getLog() as $log) {
  print 'DRUSH:' . $log['type'] . ': ' . $log['message'];
}

About

PHP class that invokes drush commands and allows to obtain the output (and logs) in a clean way

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages