મુખ્ય સામગ્રીને બાયપાસ કરો

PHPExtensionManifest

Extension artifact manifest. Lets callers publish a matrix of .so files and lets resolvePHPExtension() select the artifact matching the current PHP version. External extension artifacts are JSPI-only.

Index

Properties

artifacts

artifacts: { extraFiles?: PHPExtensionManifestExtraFiles; phpVersion: string; sourcePath: string }[]

optionalenv

env?: Record<string, string>

Environment variables added before the extension is loaded.

optionalextensionDir

extensionDir?: string

VFS directory where PHP.wasm writes the extension .so file and its per-extension ini file. Defaults to PHP_EXTENSIONS_DIR.

optionalextraFiles

URL-backed files shared by every artifact in this manifest.

optionaliniEntries

iniEntries?: Record<string, string>

Additional key=value lines for the generated startup .ini file.

optionalloadWithIniDirective

loadWithIniDirective?: PHPExtensionLoadDirective

The first directive of the generated startup .ini file. Defaults to extension; use zend_extension for Zend extensions like Xdebug. Use false to stage the .so without registering it in php.ini.

optionalmode

mode?: php-extension

name

name: string

optionalversion

version?: string