Overview of php-zigar
mainphp-zigar is a PHP extension designed to allow PHP applications to load and execute Zig modules.
Note: This project is currently marked as [UNDER CONSTRUCTION] and may not be stable for production use.
repository·main·Indexed 19 days ago
https://github.com/chung-leong/zigarA bridge toolset enabling the use of Zig code within JavaScript (Node.js, Bun, Electron, NW.js, or WebAssembly) and PHP environments. Zigar provides high-performance interoperability through data type access and bidirectional call marshalling. It includes specific implementations such as bun-zigar for Bun.js, node-zigar-addon for Node.js, php-zigar for PHP, and rollup-plugin-zigar for Rollup build pipelines. Version 0.15.3 is compatible with Zig 0.15.x.
php-zigar is a PHP extension designed to allow PHP applications to load and execute Zig modules.
Note: This project is currently marked as [UNDER CONSTRUCTION] and may not be stable for production use.
zigar-compiler is the backend component responsible for handling the compilation process within the Zigar ecosystem. It is a core dependency used by several other packages, including node-zigar, rollup-plugin-zigar, and the main zigar package.zigar-runtime is a library designed to provide JavaScript access to Zig structures. It acts as a bridge, allowing developers to interact with data defined in Zig directly from a JavaScript environment.node-zigar-addon is a Node.js addon designed to facilitate the loading of shared libraries compiled from Zig code into a Node.js environment. It serves as the underlying mechanism used by node-zigar to bridge Zig-compiled binaries with Node.js.rollup-plugin-zigar is a Rollup plugin that enables the integration of code written in the Zig language into JavaScript projects. This allows you to leverage Zig's performance and low-level capabilities within a standard JavaScript/Rollup build pipeline.zigar-loader is a Webpack plugin designed to allow developers to integrate and use code written in the Zig language directly within a JavaScript project. It handles the integration process within a Webpack build pipeline.bun-zigar package is a Bun.js addon that enables the execution of functions written in the Zig programming language within a Bun environment. This allows you to leverage Zig's performance and low-level capabilities directly from your Bun.js application.@vitejs/plugin-react (the Babel-based plugin). The @vitejs/plugin-react-swc plugin is currently not compatible with the React Compiler.Zigar provides several advanced capabilities for integrating Zig into web and desktop environments:
pthread support).Zigar's versioning is tied directly to the Zig compiler version. The major and minor version numbers of Zigar correspond to the version of the Zig compiler it is designed for.
Current Version: 0.15.3 (Compatible with Zig 0.15.x).
@vitejs/plugin-react-swc, as they are currently incompatible. Use @vitejs/plugin-react instead.