PHPackages                             ffi-headers/sdl2-headers - 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. ffi-headers/sdl2-headers

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

ffi-headers/sdl2-headers
========================

PHP FFI SDL2 Headers

1.0.3(3y ago)1591MITCPHP ^8.1

Since Mar 12Pushed 3y ago1 watchersCompare

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

READMEChangelog (4)Dependencies (4)Versions (5)Used By (0)

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

 [![](https://github.com/php-ffi-headers/sdl2-headers/workflows/build/badge.svg)](https://github.com/php-ffi-headers/sdl2-headers/actions) [![](https://camo.githubusercontent.com/6b4bcb88bda4191637c847da70dafa0efc635a9c492d17e9f71ab92d76f46516/68747470733a2f2f696d672e736869656c64732e696f2f62616467652f5048502d382e312e302d6666303134302e737667)](https://packagist.org/packages/ffi-headers/sdl2-headers) [![](https://camo.githubusercontent.com/b10cf76d82c1cd2e02f9157b2a4beaf4a52437d65b77db7af2da3ba6aa62a305/68747470733a2f2f696d672e736869656c64732e696f2f62616467652f53444c322d322e32342e302d6363336332302e737667)](https://packagist.org/packages/ffi-headers/sdl2-headers) [![Latest Stable Version](https://camo.githubusercontent.com/8e9221d390d072523ff2e64e508fca332aeff28a8286ee498be1ba63df130069/68747470733a2f2f706f7365722e707567782e6f72672f6666692d686561646572732f73646c322d686561646572732f76657273696f6e)](https://packagist.org/packages/ffi-headers/sdl2-headers) [![Latest Unstable Version](https://camo.githubusercontent.com/42920957766c84f539499084230ae5621ffa0b2437ea0d5c1f496b79751c49c9/68747470733a2f2f706f7365722e707567782e6f72672f6666692d686561646572732f73646c322d686561646572732f762f756e737461626c65)](https://packagist.org/packages/ffi-headers/sdl2-headers) [![Total Downloads](https://camo.githubusercontent.com/aab21850086909d61e0cc51a70baf60cd2114087387b40536ecfd56c7b05e8e8/68747470733a2f2f706f7365722e707567782e6f72672f6666692d686561646572732f73646c322d686561646572732f646f776e6c6f616473)](https://packagist.org/packages/ffi-headers/sdl2-headers) [![License MIT](https://camo.githubusercontent.com/899aee61526fe202e0e2e978561d5f27b886fba19a5312fb7b5697a20e2b01bf/68747470733a2f2f706f7365722e707567782e6f72672f6666692d686561646572732f73646c322d686561646572732f6c6963656e7365)](https://raw.githubusercontent.com/php-ffi-headers/sdl2-headers/master/LICENSE.md)

SDL2 Headers
============

[](#sdl2-headers)

This is a C headers of the [SDL2](https://www.libsdl.org/download-2.0.php) adopted for PHP.

Requirements
------------

[](#requirements)

- PHP &gt;= 8.1

Installation
------------

[](#installation)

Library is available as composer repository and can be installed using the following command in a root of your project.

```
$ composer require ffi-headers/sdl2-headers
```

Usage
-----

[](#usage)

```
use FFI\Headers\SDL2;

$headers = SDL2::create(
    SDL2\Version::V2_24_2, // SDL2 Headers Version
);

echo $headers;
```

> Please note that the use of header files is not the latest version:
>
> - Takes time to download and install (This will be done in the background &gt; during initialization).
> - May not be compatible with the PHP headers library.

###  Health Score

28

—

LowBetter than 52% of packages

Maintenance20

Infrequent updates — may be unmaintained

Popularity11

Limited adoption so far

Community8

Small or concentrated contributor base

Maturity61

Established project with proven stability

 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

Every ~54 days

Total

4

Last Release

1410d 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 (29 commits)")

---

Tags

ffiheadersphpunixheaderslinuxwindowsffimacosopenglcsdlVulkanopengl-essdl2

###  Code Quality

Static AnalysisPsalm

Type Coverage Yes

### Embed Badge

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

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

###  Alternatives

[devium/processes

This package is used to get a list of running processes on Windows or Unix-like systems, even Darwin

2432.5k](/packages/devium-processes)[serafim/ffi-sdl

SDL FFI bindings for the PHP language

324.6k3](/packages/serafim-ffi-sdl)[jolicode/php-os-helper

Helpers to detect the OS of the machine where PHP is running.

213.3M6](/packages/jolicode-php-os-helper)[lbaey/chromedriver

Utility for installing Chromedriver, whatever platform you are on, for use with Behat

1459.7k1](/packages/lbaey-chromedriver)[ffi/preprocessor

Simple C Preprocessor

2637.0k13](/packages/ffi-preprocessor)

PHPackages © 2026

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