TwistPHP Documentation

Command

File path: dist/twist/Core/Utilities/Command.utility.php
Namespace: Twist\Core\Utilities
Extends: Base

Type: Utility

Command — Execute bash command line commands on the server and get back nicely formatted result array.

Example Usage

<?php
//Set the variables for the example
$strCommand 'foo';
$dirCurrentWorkingDirectory null;

//Call the function execute with the example vars
Twist::Command() -> execute($strCommand$dirCurrentWorkingDirectory);

Method List

Method Access Returns
executepublicvoid
isEnabledpublicvoid