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. [Utility &amp; Helpers](/categories/utility)
4. /
5. zeroshotlabs/libphphi

ActiveLibrary[Utility &amp; Helpers](/categories/utility)

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

Base trait and helpers for working with PHP FFI modules.

010PHPCI failing

Since May 18Pushed 1mo ago1 watchersCompare

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

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

21

—

LowBetter than 18% of packages

Maintenance60

Regular maintenance activity

Popularity5

Limited adoption so far

Community7

Small or concentrated contributor base

Maturity11

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://avatars.githubusercontent.com/u/18216019?v=4)[praxis](/maintainers/praxis)[@praxis](https://github.com/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)
```

###  Alternatives

[gossi/php-code-generator

Toolset for generating PHP code

155206.9k33](/packages/gossi-php-code-generator)[dragon-code/benchmark

Simple comparison of code execution speed between different options

12037.9k6](/packages/dragon-code-benchmark)[askvortsov/flarum-auto-moderator

Powerful automation engine.

1419.4k2](/packages/askvortsov-flarum-auto-moderator)[ammardaana/laravel-domain-driven-design

Generate laravel Domain driven design (monolith) structure

111.8k](/packages/ammardaana-laravel-domain-driven-design)

PHPackages © 2026

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