@webreflection/php
v0.0.4
Published
Run PHP right in the browser
Downloads
12
Readme
@webreflection/php
Re-packaged php-wasm for ESM.
import { PhpWeb } from 'https://cdn.jsdelivr.net/npm/@webreflection/php/es.js';
const php = new PhpWeb({
print: console.log,
printErr: console.error,
locateFile: () => 'https://cdn.jsdelivr.net/npm/@webreflection/php/php-web.wasm'
});
php.addEventListener('ready', () => {
php.run('<?php echo "Hello World!";');
});