Skip to content

WebReflection/php

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

9 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

@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!";');
});

About

Re-packaged php-wasm for ESM

Resources

Stars

Watchers

Forks

Packages

No packages published