@php-wasm/universal
Index
Classes
Functions
Interfaces
Type Aliases
- DataModule
- EmscriptenOptions
- HTTPMethod
- IsomorphicRemotePHP
- IterateFilesOptions
- MessageListener
- PHPEvent
- PHPEventListener
- PHPFactory
- PHPFactoryOptions
- PHPLoaderModule
- PHPRequestHandlerConfiguration
- PHPRequestHeaders
- PHPRuntime
- PHPRuntimeId
- RewriteRule
- RuntimeType
- SpawnHandler
- SupportedPHPExtension
- SupportedPHPExtensionBundle
- SupportedPHPVersion
- UniversalPHP
Variables
Type Aliases
DataModule
Type declaration
default: (phpRuntime: PHPRuntime) => void
Parameters
phpRuntime: PHPRuntime
Returns void
dependenciesTotalSize: number
dependencyFilename: string
EmscriptenOptions
HTTPMethod
IsomorphicRemotePHP
IterateFilesOptions
Type declaration
optionalexceptPaths?: string[]
A list of paths to exclude from the results.
optionalpathPrefix?: string
A prefix to add to all paths. Only used if
relativePaths
is true.optionalrelativePaths?: boolean
Should yield paths relative to the root directory? If false, all paths will be absolute.
MessageListener
Type declaration
Parameters
data: string
Returns Promise<string | Uint8Array | void> | string | void
PHPEvent
Represents an event related to the PHP instance. This is intentionally not an extension of CustomEvent to make it isomorphic between different JavaScript runtimes.
PHPEventListener
Type declaration
A callback function that handles PHP events.
Parameters
event: PHPEvent
Returns void
PHPFactory
Type parameters
- PHP: BasePHP
Type declaration
Parameters
options: PHPFactoryOptions
Returns Promise<PHP>
PHPFactoryOptions
Type declaration
isPrimary: boolean
PHPLoaderModule
Type declaration
dependenciesTotalSize: number
dependencyFilename: string
init: (jsRuntime: string, options: EmscriptenOptions) => PHPRuntime
Parameters
jsRuntime: string
options: EmscriptenOptions
Returns PHPRuntime
PHPRequestHandlerConfiguration
Type parameters
- PHP: BasePHP
PHPRequestHeaders
PHPRuntime
PHPRuntimeId
RewriteRule
Type declaration
match: RegExp
replacement: string
RuntimeType
SpawnHandler
Type declaration
Parameters
command: string
args: string[]
Returns ChildProcess
SupportedPHPExtension
SupportedPHPExtensionBundle
SupportedPHPVersion
UniversalPHP
Variables
constDEFAULT_BASE_URL
The default base used to convert a path into the URL object.
constLatestSupportedPHPVersion
constSupportedPHPExtensionBundles
Type declaration
kitchen-sink: string[]
light: never[]
The omited methods must either be called synchronously before the PHP internal state is initialized, or with a complex argument that can’t be serialized over a remote connection. Therefeore, they don’t make sense in a remote PHP instance.