0.0.0-j • Published 8 months ago

php-wasm-dom v0.0.0-j

Weekly downloads
-
License
-
Repository
github
Last release
8 months ago

php-wasm-dom

dom extension for php-wasm

https://github.com/seanmorris/php-wasm

https://www.npmjs.com/package/php-wasm

Usage

php-wasm-dom can be loaded via dynamic imports:

const php = new PhpWeb({sharedLibs: [
    await import('https://unpkg.com/php-wasm-dom')
]});

You can rely on the default loading behavior if all .so files are served from the same directory as your .wasm files.

const php = new PhpWeb({sharedLibs: ['php8.3-dom.so']});

You can provide a callback as the locateFile option to map library names to URLs:

const locateFile = (libName) => {
    return `https://my-example-server.site/path/to/libs/${libName}`;
};

const php = new PhpWeb({locateFile, sharedLibs: ['php8.3-dom.so']});

Build options:

The following options may be set in .php-wasm-rc for custom builds of php-wasm & php-cgi-wasm.

  • WITH_DOM

WITH_DOM

0|static|dynamic

When compiled as a dynamic extension, this will produce the extension php-8.𝑥-dom.so.

0.0.9-alpha-27

8 months ago

0.0.9-alpha-26

8 months ago

0.0.9-alpha-25

9 months ago

0.0.9-alpha-22

9 months ago

0.0.9-alpha-23

9 months ago

0.0.9-alpha-24

9 months ago

0.0.9-alpha-21

9 months ago

0.0.9-alpha-20

9 months ago

0.0.9-alpha-18

9 months ago

0.0.9-alpha-19

9 months ago

0.0.9-alpha-17

9 months ago

0.0.0-j

1 year ago

0.0.0-i

1 year ago

0.0.0-h

1 year ago

0.0.0-f

1 year ago

0.0.0-e

1 year ago

0.0.0-d

1 year ago

0.0.0-c

1 year ago

0.0.0-b

1 year ago

0.0.0-a

1 year ago

0.0.0

1 year ago