php-wasm-openssl
v0.1.0
Published
openssl for php-wasm.
Downloads
146
Readme
php-wasm-openssl
php-wasm-openssl provides the openssl extension for php-wasm.
Install
npm install php-wasm php-wasm-opensslWhat It Loads
The package resolves the active runtime version to php8.x-openssl.so and bundles libssl.so plus libcrypto.so.
Usage
import { PhpWeb } from 'php-wasm/PhpWeb.mjs';
import openssl from 'php-wasm-openssl';
const php = new PhpWeb({
version: '8.4',
sharedLibs: [openssl],
});
await php.run(`<?php var_dump(extension_loaded('openssl'));`);Custom Builds
Enable WITH_OPENSSL in .php-wasm-rc.
Build Options
WITH_OPENSSL: defaults todynamic. Allowed values:0,1,shared,dynamic.- OpenSSL does not use a
staticmode in this package makefile. Shared and dynamic builds emitlibssl.soandlibcrypto.so.
