API CommandLine - chsxf/mfx GitHub Wiki

CommandLine Class

chsxf\MFX

final class CommandLine

Summary

Command-line invocation handling class. Eases the use of the framework with command-line scripts

Since 1.0

Methods

isCLI

public static function isCLI(): bool

Tells if PHP is running on the command-line interface (CLI) server API

Since 1.0

Returns

boolean true is the current server API is the command-line interface, false either