typephp
Compile PHP to Native Binaries
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.
TypePHP `project.yml` Configuration Guide: Complete Manifest ReferenceLearn 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.
Prerequisites for Building WASM Components with TypePHP: Complete Setup GuideLearn 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 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 Compile a TypePHP Project to a WASI Component: Complete GuideCompile your TypePHP project to a WASI component using the TypePhp Platform Wasi abstraction. Learn how to generate portable .wasm binaries with this complete guide.
Supported Target Platforms for TypePHP: Windows, Linux, macOS, and WASIDiscover TypePHP's supported target platforms: Windows, Linux, macOS, and WASI. Compile portable binaries easily with automatic host detection and cross-compilation.
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.
How to Integrate C++ Code with TypePHP Projects: A Complete Guide to External Import StubsIntegrate C++ with TypePHP using external import stubs. Declare extern functions in PHP, implement in C++, and compile easily. A complete guide for developers.
TypePHP Compile-Time Attributes: Supported Registry and Code Generation ExplainedDiscover TypePHP's 18 compile-time attributes like Getter and NotNull. Learn how they generate accessor methods, runtime checks, and WebAssembly exports during compilation.
How TypePHP Resolves Universal Methods at Compile Time: Static Dispatch in Swoole's PHP CompilerDiscover 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.
TypePHP `std::array` vs PHP Array Performance: How the AOT Compiler Achieves 10x SpeedupDiscover how TypePHP std::array outperforms PHP arrays by 10x. Learn how AOT compilation and native C++ arrays eliminate overhead for blazing fast performance.
What Are std Containers in TypePHP and Why Use Them Over PHP ArraysDiscover 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.
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:
curl -s "https://instagit.com/install.md" Maintain an open-source project? Get it listed too →