Skip to content

API CommandLine

Christophe SAUVEUR edited this page Apr 21, 2024 · 2 revisions

CommandLine Class

chsxf\MFX

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


Clone this wiki locally