@php-wasm/universal
Index
Classes
Functions
Interfaces
Namespaces
Type Aliases
- DataModule
- EmscriptenOptions
- FileNotFoundAction
- FileNotFoundGetActionCallback
- FileNotFoundToInternalRedirect
- FileNotFoundToResponse
- HTTPMethod
- IterateFilesOptions
- MessageListener
- MountHandler
- PHPEvent
- PHPEventListener
- PHPFactory
- PHPFactoryOptions
- PHPLoaderModule
- PHPRequestHandlerConfiguration
- PHPRequestHeaders
- PHPRuntime
- PHPRuntimeId
- RewriteRule
- RuntimeType
- SpawnHandler
- SupportedPHPVersion
- UniversalPHP
- UnmountFunction
Variables
Type Aliases
DataModule
Type declaration
default: (phpRuntime: PHPRuntime) => void
Parameters
phpRuntime: PHPRuntime
Returns void
dependenciesTotalSize: number
dependencyFilename: string
EmscriptenOptions
FileNotFoundAction
FileNotFoundGetActionCallback
Type declaration
Parameters
relativePath: string
Returns FileNotFoundAction
FileNotFoundToInternalRedirect
Type declaration
type: internal-redirect
uri: string
FileNotFoundToResponse
Type declaration
response: PHPResponse
type: response
HTTPMethod
IterateFilesOptions
Type declaration
optionalexceptPaths?: string[]
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
MountHandler
Type declaration
Parameters
php: PHP
FS: Emscripten.RootFS
vfsMountPoint: string
Returns UnmountFunction | Promise<UnmountFunction>
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 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
PHPRequestHeaders
PHPRuntime
PHPRuntimeId
RewriteRule
Type declaration
match: RegExp
replacement: string
RuntimeType
SpawnHandler
Type declaration
Parameters
command: string
args: string[]
Returns ChildProcess
SupportedPHPVersion
UniversalPHP
UnmountFunction
Variables
constDEFAULT_BASE_URL
The default base used to convert a path into the URL object.
A list of paths to exclude from the results.