PHPackages                             ffi-headers/sdl2-image-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. [Image &amp; Media](/categories/media)
4. /
5. ffi-headers/sdl2-image-headers

AbandonedArchivedLibrary[Image &amp; Media](/categories/media)

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

PHP FFI SDL2 Image Headers

1.0.1(3y ago)1291MITCPHP ^8.1

Since Mar 12Pushed 3y ago1 watchersCompare

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

READMEChangelog (2)Dependencies (4)Versions (3)Used By (0)

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

 [![](https://github.com/php-ffi-headers/sdl2-image-headers/workflows/build/badge.svg)](https://github.com/php-ffi-headers/sdl2-image-headers/actions) [![](https://camo.githubusercontent.com/6b4bcb88bda4191637c847da70dafa0efc635a9c492d17e9f71ab92d76f46516/68747470733a2f2f696d672e736869656c64732e696f2f62616467652f5048502d382e312e302d6666303134302e737667)](https://packagist.org/packages/ffi-headers/sdl2-image-headers) [![](https://camo.githubusercontent.com/cf6f5b33bce113ff056f61f17f0e7fd2ffa23de9f320fd96b2fcd2abcc6fe1ae/68747470733a2f2f696d672e736869656c64732e696f2f62616467652f53444c32253230496d6167652d322e362e322d6363336332302e737667)](https://packagist.org/packages/ffi-headers/sdl2-image-headers) [![Latest Stable Version](https://camo.githubusercontent.com/c735353c2bb2bce7d08a7dbaab789b35517e9d2462c149bec0b7a88430851c6a/68747470733a2f2f706f7365722e707567782e6f72672f6666692d686561646572732f73646c322d696d6167652d686561646572732f76657273696f6e)](https://packagist.org/packages/ffi-headers/sdl2-image-headers) [![Latest Unstable Version](https://camo.githubusercontent.com/f03bb04340f5fc28b74cff68b3c00f8839582359ab4558a7bc5c4617d943c77c/68747470733a2f2f706f7365722e707567782e6f72672f6666692d686561646572732f73646c322d696d6167652d686561646572732f762f756e737461626c65)](https://packagist.org/packages/ffi-headers/sdl2-image-headers) [![Total Downloads](https://camo.githubusercontent.com/a353743314aa2f3ba5fe8cf644509f51d2508d97bb6e5cafa42310b35bfbc50b/68747470733a2f2f706f7365722e707567782e6f72672f6666692d686561646572732f73646c322d696d6167652d686561646572732f646f776e6c6f616473)](https://packagist.org/packages/ffi-headers/sdl2-image-headers) [![License MIT](https://camo.githubusercontent.com/62576f5ba1b56a6a3a1b849d5f0262137aa9952db4274d4fd07e7ea7626b5eb1/68747470733a2f2f706f7365722e707567782e6f72672f6666692d686561646572732f73646c322d696d6167652d686561646572732f6c6963656e7365)](https://raw.githubusercontent.com/php-ffi-headers/sdl2-image-headers/master/LICENSE.md)

SDL2 Image Headers
==================

[](#sdl2-image-headers)

This is a C headers of the [SDL2 Image](https://www.libsdl.org/projects/SDL_image) 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-image-headers
```

Usage
-----

[](#usage)

```
use FFI\Headers\SDL2Image;

$headers = SDL2Image::create(
    SDL2Image\Version::V2_0_5,
);

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

27

—

LowBetter than 49% of packages

Maintenance20

Infrequent updates — may be unmaintained

Popularity10

Limited adoption so far

Community8

Small or concentrated contributor base

Maturity58

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

Every ~162 days

Total

2

Last Release

1356d 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 (17 commits)")

---

Tags

ffiheadersphppluginimageunixheadersextensionlinuxwindowsffimacosopenglcsdlVulkanopengl-essdl2

###  Code Quality

Static AnalysisPsalm

Type Coverage Yes

### Embed Badge

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

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

###  Alternatives

[devium/processes

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

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

SDL FFI bindings for the PHP language

324.6k3](/packages/serafim-ffi-sdl)[simonvomeyser/commonmark-ext-lazy-image

Adds support for lazy images to the phpleague/commonmark markdown parser package

1821.3k1](/packages/simonvomeyser-commonmark-ext-lazy-image)[maxmirazh33/yii2-uploadable-cropable-image

Yii2 extension for upload and crop images

1020.8k](/packages/maxmirazh33-yii2-uploadable-cropable-image)[somehow-digital/typo3-media-processing

Media Processing

101.1k](/packages/somehow-digital-typo3-media-processing)

PHPackages © 2026

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