PHPackages                             ffi-headers/contracts - 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. [PSR &amp; Standards](/categories/psr-standards)
4. /
5. ffi-headers/contracts

AbandonedArchivedLibrary[PSR &amp; Standards](/categories/psr-standards)

ffi-headers/contracts
=====================

PHP FFI headers base library

1.0.0(4y ago)236.5k113MITPHPPHP ^8.1

Since Mar 11Pushed 3y ago2 watchersCompare

[ Source](https://github.com/php-ffi-headers/contracts)[ Packagist](https://packagist.org/packages/ffi-headers/contracts)[ RSS](/packages/ffi-headers-contracts/feed)WikiDiscussions master Synced 1w ago

READMEChangelog (1)Dependencies (2)Versions (2)Used By (13)

 [ ![Phplrt](https://avatars.githubusercontent.com/u/101121010?s=256) ](https://github.com/php-ffi-headers)

 [![](https://github.com/php-ffi-headers/contracts/workflows/build/badge.svg)](https://github.com/php-ffi-headers/contracts/actions) [![PHP 7.1+](https://camo.githubusercontent.com/9db2fab0691586dd155f38bf68c0bf36e8fa2982f43eeb9f19f31c0e77eea053/68747470733a2f2f696d672e736869656c64732e696f2f62616467652f5048502d382e312b2d6666303134302e737667)](https://packagist.org/packages/ffi-headers/contracts) [![Latest Stable Version](https://camo.githubusercontent.com/78110f1c28c5590ebdb87f9f4c975dbf87e141236e71a8dad28cea19db130bbe/68747470733a2f2f706f7365722e707567782e6f72672f6666692d686561646572732f636f6e7472616374732f76657273696f6e)](https://packagist.org/packages/ffi-headers/contracts) [![Latest Unstable Version](https://camo.githubusercontent.com/7dd4342d4a2e3e4faa84d2f110c432318ef39d174f7ec518fbe432a10d229da0/68747470733a2f2f706f7365722e707567782e6f72672f6666692d686561646572732f636f6e7472616374732f762f756e737461626c65)](https://packagist.org/packages/ffi-headers/contracts) [![Total Downloads](https://camo.githubusercontent.com/d5c66ce7a4a524eda04c26cb0987df3e50570f4bbc78dd14cbb02b16683892d2/68747470733a2f2f706f7365722e707567782e6f72672f6666692d686561646572732f636f6e7472616374732f646f776e6c6f616473)](https://packagist.org/packages/ffi-headers/contracts) [![License MIT](https://camo.githubusercontent.com/179f7c036aa65024f42eac62b8d53c20a82ca84c27cc3ec4b03de4e6389d70fe/68747470733a2f2f706f7365722e707567782e6f72672f6666692d686561646572732f636f6e7472616374732f6c6963656e7365)](https://raw.githubusercontent.com/php-ffi-headers/contracts/master/LICENSE.md)

Headers Contracts
=================

[](#headers-contracts)

List of interfaces to implement header files.

Can be used to build on semantics that the PHP FFI header components proved useful - and that already have battle tested implementations.

###  Health Score

33

—

LowBetter than 75% of packages

Maintenance20

Infrequent updates — may be unmaintained

Popularity26

Limited adoption so far

Community18

Small or concentrated contributor base

Maturity57

Maturing project, gaining track record

 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.

###  Release Activity

Cadence

Unknown

Total

1

Last Release

1529d ago

### Community

Maintainers

![](https://avatars.githubusercontent.com/u/150420?v=4)[Ruslan Sharipov](/maintainers/Serafim)[@serafim](https://github.com/serafim)

---

Top Contributors

[![SerafimArts](https://avatars.githubusercontent.com/u/2461257?v=4)](https://github.com/SerafimArts "SerafimArts (16 commits)")

---

Tags

contractffiheadersphpstandardsinterfacesinteroperabilitycontractsabstractionsdecouplingheadersffi

###  Code Quality

TestsPHPUnit

Static AnalysisPsalm

Type Coverage Yes

### Embed Badge

![Health badge](/badges/ffi-headers-contracts/health.svg)

```
[![Health](https://phpackages.com/badges/ffi-headers-contracts/health.svg)](https://phpackages.com/packages/ffi-headers-contracts)
```

###  Alternatives

[symfony/translation-contracts

Generic abstractions related to translation

2.6k698.7M432](/packages/symfony-translation-contracts)[symfony/contracts

A set of abstractions extracted out of the Symfony components

3.9k64.6M103](/packages/symfony-contracts)

PHPackages © 2026

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