TypePHP Native PHP Compiler Goes Open Source – Full Code Now Available
The TypePHP native PHP compiler has been fully open‑sourced, with the complete source code, build tools, and test suite now cloneable, a two‑stage release plan targeting community seed users first and a full GitHub launch in September, marking a significant milestone for the PHP ecosystem.
What has been opened
Full source of the TypePHP compiler—including lexer, AST handling, PHP‑to‑C++ compilation logic, build toolchain, and test suite—can be cloned from the internal repository https://git.code-galaxy.net/aot/compiler.
Release plan
Current phase : limited to seed community users for early testing and feedback.
Expected September : full upload to GitHub for worldwide developers.
Open‑source timeline
Early: incubated as a commercial product, source closed.
Prior: official site announced “free for commercial use”, released documentation and examples, core source still closed.
Today: author announced source open to community users for early cloning.
Expected September : official GitHub launch, fully open to all developers.
Why PHP developers should care
Black‑box opened
With the source available, developers can inspect the implementation of type inference ( native_types), ZVAL elimination, and compile‑time safety checks.
“Free for commercial” license
The license is released together with the code, allowing teams with commercial needs to evaluate risk directly.
First native compiler the PHP ecosystem can contribute to
Unlike previous scattered AOT experiments, TypePHP is a complete compiler backed by the Swoole team. After the September GitHub launch, developers can file issues, submit pull requests, and help shape the ecosystem.
References
https://git.code-galaxy.net/aot/compiler https://swoole.com/aot/Series first article: “PHP 终于要编译成原生代码了?TypePHP 全面解读”.
Signed-in readers can open the original source through BestHub's protected redirect.
This article has been distilled and summarized from source material, then republished for learning and reference. If you believe it infringes your rights, please contactand we will review it promptly.
Open Source Tech Hub
Sharing cutting-edge internet technologies and practical AI resources.
How this landed with the community
Was this worth your time?
0 Comments
Thoughtful readers leave field notes, pushback, and hard-won operational detail here.
