PHPackages                             zeroshotlabs/libphphi - PHPackages - PHPackages  [Skip to content](#main-content)[PHPackages](/)[Directory](/)[Categories](/categories)[Trending](/trending)[Leaderboard](/leaderboard)[Changelog](/changelog)[Analyze](/analyze)[Collections](/collections)[Log in](/login)[Sign up](/register)

1. [Directory](/)
2. /
3. zeroshotlabs/libphphi

ActiveLibrary

zeroshotlabs/libphphi
=====================

Base trait and helpers for working with PHP FFI modules.

010PHP

Since Oct 2Pushed 1y ago1 watchersCompare

[ Source](https://github.com/zeroshotlabs/libphphi)[ Packagist](https://packagist.org/packages/zeroshotlabs/libphphi)[ RSS](/packages/zeroshotlabs-libphphi/feed)WikiDiscussions main Synced 1mo ago

READMEChangelogDependenciesVersions (1)Used By (0)

Goal
----

[](#goal)

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 -&gt; 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-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.

###  Health Score

15

—

LowBetter than 3% of packages

Maintenance29

Infrequent updates — may be unmaintained

Popularity5

Limited adoption so far

Community7

Small or concentrated contributor base

Maturity17

Early-stage or recently created project

 Bus Factor1

Top contributor holds 100% of commits — single point of failure

How is this calculated?**Maintenance (25%)** — Last commit recency, latest release date, and issue-to-star ratio. Uses a 2-year decay window.

**Popularity (30%)** — Total and monthly downloads, GitHub stars, and forks. Logarithmic scaling prevents top-heavy scores.

**Community (15%)** — Contributors, dependents, forks, watchers, and maintainers. Measures real ecosystem engagement.

**Maturity (30%)** — Project age, version count, PHP version support, and release stability.

### Community

Maintainers

![](https://www.gravatar.com/avatar/f940158babb4d12d8b3b363b1bfe8bd6e1a8bbd03a66bb98df4b601ce191b344?d=identicon)[praxis](/maintainers/praxis)

---

Top Contributors

[![zaunere](https://avatars.githubusercontent.com/u/3363877?v=4)](https://github.com/zaunere "zaunere (6 commits)")

### Embed Badge

![Health badge](/badges/zeroshotlabs-libphphi/health.svg)

```
[![Health](https://phpackages.com/badges/zeroshotlabs-libphphi/health.svg)](https://phpackages.com/packages/zeroshotlabs-libphphi)
```

PHPackages © 2026

[Directory](/)[Categories](/categories)[Trending](/trending)[Changelog](/changelog)[Analyze](/analyze)
