parser/trunk_compiler/README.md

601 B

Trunk Compiler

This package contains the initial MVP for compiling PHP code to a native executable.

The initial proof of concept is powered by the nikic/php-parser package since it supports the entire PHP language. The compiler itself will be moved across to the Rust one found in trunk_parser once the concept has been thought out and proved to be useful.

Requirements

The compiler is written in PHP, so you will need the official PHP engine available. You will also need to have a recent version of Go installed (recommended >1.18).