Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with
or
.
Clone in Desktop Download ZIP
PyHP.js is a PHP interpreter in JavaScript running in a web browser
Makefile
Branch: master

README.md

PyHP.js

Alt text

PyHP.js compiles PyHP interpreter to a JavaScript VM.

Highly unstable and work in progress.

Based on PyPy compiled to JavaScript.

How does it work?

PyHP PHP interpreter written in Python is translated into C using RPython, translated into JavaScript using emscripten.

The resulting javascript file is asm.js. It can be loaded in any browser or ran with Node.js.

Building

docker pull rfkelly/pypyjs-build
make build
node build/pyhp.vm.js example.php

Or build the less optimized, but easier to inspect debug version

make build-debug
node build/pyhp-debug.vm.js example.php

Why?

TBD

Something went wrong with that request. Please try again.