php-wasm-tidy
v0.1.0
Published
tidy for phpwasm.
Readme
php-wasm-tidy
php-wasm-tidy provides the tidy extension for php-wasm.
Install
npm install php-wasm php-wasm-tidyWhat It Loads
The package resolves the active runtime version to php8.x-tidy.so and bundles libtidy.so.
Usage
import { PhpWeb } from 'php-wasm/PhpWeb.mjs';
import tidy from 'php-wasm-tidy';
const php = new PhpWeb({
version: '8.4',
sharedLibs: [tidy],
});
await php.run(`<?php var_dump(extension_loaded('tidy'));`);Custom Builds
Enable WITH_TIDY in .php-wasm-rc.
Build Options
WITH_TIDY: defaults todynamic. Allowed values:0,1,static,shared,dynamic.WITH_TIDY=staticrequiresWITH_LIBXML=static.WITH_TIDY=sharedexpectsWITH_LIBXMLto besharedorstatic.WITH_TIDY=dynamicexpects a dynamic libxml setup.
