• Picks
  • Discover
  • Alternatives
  • About

© 2026 Willet

  • Newsletter
  • About
  • FAQ
  • Terms
  • Privacy & Cookies
Join the Discord (opens in a new tab)
Swoole Project avatar

TypePHP

Ahead-of-time compiler that turns typed PHP into native binaries

  • Languages and frameworks
  • Developer tools
View on GitHub
Website

Featured by Willet

What it is

TypePHP translates PHP source into C++17 and then into machine code, producing standalone executables, loadable PHP extensions, or shared libraries. It adds compile-time types, typed containers, high-precision numeric types, and C++ interop while keeping PHP syntax, and targets Linux, macOS, Windows, mobile, and WASI. PHP developers reach for it when they need faster numeric hot paths, native deployment without a PHP CLI, or compiled artifacts instead of readable source. It supports a defined subset of PHP rather than every dynamic feature.

Images

  • Swoole Project avatar

Facts

Stars
1.4k1,450

Forks
80
Commits
1,911
Contributors
18
Language
PHP
License
GPL-3.0
Last commit
Oct 20, 2026
On GitHub since
May 2026
First release
August 2026
Platforms
macOS, Windows, Linux, CLI
Self-hostable
No
Tags
  • build-tool
  • compiler
  • programming-language

Last synced from GitHub on Oct 20, 2026

Share and more

Comments

No comments yet. Start the conversation.

The 10 best overlooked open-source projects, every Monday.

Similar projects

  • Vercel Labs avatar

    scriptc

    Experimental compiler turning TypeScript into native binaries and WebAssembly

    6.3k

What people are saying

Updated Oct 20, 2026
  • Bluesky“⚠️ Supports PHP 8.4–8.5 including property hooks and asymmetric visibility. It intentionally compiles a defined subset of PHP, so highly dynamic code may need…”Sep 16, 2026 · 0 likes · 0 replies (opens Bluesky in a new tab)
  • Bluesky“TypePHP compiles PHP ahead of time into native binaries. The compiler is written in PHP and compiles itself. It covers a subset of the language.”Sep 8, 2026 · 0 likes · 0 replies (opens Bluesky in a new tab)
  • Bluesky“TypePHP compiles PHP source code into standalone native machine binaries without requiring a runtime interpreter. 133 new stars this week. #PHP #Compilers…”Aug 30, 2026 · 0 likes · 0 replies (opens Bluesky in a new tab)