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