phramework doc
  • Namespace
  • Class
  • Tree
  • Deprecated
  • Todo

Namespaces

  • Phramework
    • Authentication
    • Database
      • Operations
    • Exceptions
    • Extensions
    • Models
    • URIStrategy
    • Validate
    • Viewers

Classes

  • Cache
  • Compress
  • Email
  • Execute
  • Filter
  • Language
  • Operator
  • Request
  • Response
  • Upload
  • Util

Class Execute

Execute class

Provides function to execute commands

Namespace: Phramework\Models
License: Apache-2.0
Author: Xenofon Spafaridis nohponex@gmail.com
Since 0
Located at Models/Execute.php

Methods summary

public static
# async( string $executable, array $arguments = [], string $output_stream = '/dev/null' )

Execute asynchronously using exec

Execute asynchronously using exec

Parameters

$executable
Path to executable file
$arguments
$arguments Executable arguments
$output_stream
$output_stream

Uses

exec

Todo

use sprintf, make it more readable
public static intigerthen
# file( string $executable, array $arguments = [], array & $output = false )

Execute using exec

Execute using exec

Parameters

$executable
Path to executable file
$arguments
[optional] Executable arguments
$output

[optional] This array will be filled with every line of output from the command. Trailing whitespace, such as \n, is not

Returns

intigerthen
the return status of the executed command

Uses

exec

Todo

use sprintf, make it more readable
phramework doc API documentation generated by ApiGen