zeroshotlabs/libphphi
Composer 安装命令:
composer require zeroshotlabs/libphphi
包简介
Base trait and helpers for working with PHP FFI modules.
README 文档
README
The confluence of FFI and modern Intermediate Representations like MLIR/LLVM, can let developers move between languages easier than before, andwith GPT, "fullstack" development takes on another dimension - multi-stack.
A part of that is making it easier to call across language backends - in this case from PHP -> C. As things develop, I hope to slowly progress towards a generic semi-structured syntax that's generated to a powerful IR, abtracting the syntax from capability.
This Package
This is a trait a few constants that can help keep FFI integrations consistent. By default, modules (i.e. classes that use this trait) are expected to instantiate their own FFI object with their required headers, .c code, and dependencies, resulting in a shared object.
That shared object .so should also link this shared libray in, resulting in a single .so which is then ready for FFI::load() and FFI::scope().
It also provides some shared Makefile code.
This generally isn't used by itself unless you really want to. See specific modules for use examples.
统计信息
- 总下载量: 10
- 月度下载量: 0
- 日度下载量: 0
- 收藏数: 0
- 点击次数: 1
- 依赖项目数: 1
- 推荐数: 0
其他信息
- 授权协议: gpl-3.0-or-later
- 更新时间: 2024-09-15