typephp

Compile PHP to Native Binaries

24 articles 960 View on GitHub ↗
24 articles
How to Specify Conditional Source Entries in `project.yml` Based on PHP Version or OS

Learn to conditionally include source entries in project.yml using php version or OS checks. Master version and OS comparisons with the 'if' field for flexible builds.

how-to-guide
Aug 30, 2026
TypePHP `project.yml` Configuration Guide: Complete Manifest Reference

Learn how to configure your TypePHP project using the project.yml manifest. This guide covers essential settings like build mode, compiler flags, and source directories for efficient development.

api-reference
Aug 30, 2026
Prerequisites for Building WASM Components with TypePHP: Complete Setup Guide

Learn the prerequisites for building WASM components with TypePHP. Install WASI SDK, add Wasmtime to PATH, and enable Wasm compilation in project.yml for seamless development.

how-to-guide
Aug 30, 2026
How to Compile a TypePHP Project for the Browser Using WebAssembly (WASM)

Compile your TypePHP project for the browser with WebAssembly WASM using our easy three-stage build process. Get started now!

how-to-guide
Aug 30, 2026
How to Compile a TypePHP Project to a WASI Component: Complete Guide

Compile your TypePHP project to a WASI component using the TypePhp Platform Wasi abstraction. Learn how to generate portable .wasm binaries with this complete guide.

how-to-guide
Aug 30, 2026
Supported Target Platforms for TypePHP: Windows, Linux, macOS, and WASI

Discover TypePHP's supported target platforms: Windows, Linux, macOS, and WASI. Compile portable binaries easily with automatic host detection and cross-compilation.

getting-started
Aug 30, 2026
What Is the `php_` C++ Symbol Prefix in TypePHP?

Discover the php_ C++ symbol prefix in TypePHP. Learn how it ensures stable, collision-free entry points between PHP and compiled C++ code for user-defined functions and methods.

internals
Aug 30, 2026
How to Integrate C++ Code with TypePHP Projects: A Complete Guide to External Import Stubs

Integrate C++ with TypePHP using external import stubs. Declare extern functions in PHP, implement in C++, and compile easily. A complete guide for developers.

how-to-guide
Aug 30, 2026
TypePHP Compile-Time Attributes: Supported Registry and Code Generation Explained

Discover TypePHP's 18 compile-time attributes like Getter and NotNull. Learn how they generate accessor methods, runtime checks, and WebAssembly exports during compilation.

deep-dive
Aug 30, 2026
How TypePHP Resolves Universal Methods at Compile Time: Static Dispatch in Swoole's PHP Compiler

Discover how TypePHP uses static dispatch to resolve universal methods at compile time. Learn how this technique eliminates runtime overhead for functions like length() and upper() in Swoole's PHP compiler.

internals
Aug 30, 2026
TypePHP `std::array` vs PHP Array Performance: How the AOT Compiler Achieves 10x Speedup

Discover how TypePHP std::array outperforms PHP arrays by 10x. Learn how AOT compilation and native C++ arrays eliminate overhead for blazing fast performance.

performance
Aug 30, 2026
What Are std Containers in TypePHP and Why Use Them Over PHP Arrays

Discover TypePHP's std containers like std::vector and std::map. Gain compile-time type safety and up to 10x performance gains over PHP arrays by eliminating zval overhead. Learn why they are superior.

deep-dive
Aug 30, 2026

Have a question about this repo?

These articles cover the highlights, but your codebase questions are specific. Give your agent direct access to the source. Share this with your agent to get started:

Share the following with your agent to get started:
curl -s "https://instagit.com/install.md"

Works with
Claude Codex Cursor VS Code OpenClaw Any MCP Client

Maintain an open-source project? Get it listed too →