Alpha ZealPHP is early-stage and under active development. APIs may change between minor versions until v1.0. Feedback and bug reports welcome on GitHub.
API Index — Namespaces, Packages, Reports, Indices

CgiMode : string
in package

Type-safe enum for App::cgiMode(). The four strategies for dispatching CGI requests (.php files in legacy-CGI mode, and any registered non-.php extension).

App::cgiMode(CgiMode::Proc); // ← type-checked App::cgiMode('proc'); // ← still works (BC)

Table of Contents

Cases

Fcgi  = 'fcgi'
Fork  = 'fork'
Pool  = 'pool'
Proc  = 'proc'

Methods

coerce()  : self

Cases

Methods

coerce()

public static coerce(self|string $mode) : self
Parameters
$mode : self|string
Return values
self
On this page