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

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

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

PHP FFI SDL2 TTF Headers

1.0.1(3y ago)1281MITCPHP ^8.1

Since Mar 12Pushed 3y ago1 watchersCompare

[ Source](https://github.com/php-ffi-headers/sdl2-ttf-headers)[ Packagist](https://packagist.org/packages/ffi-headers/sdl2-ttf-headers)[ RSS](/packages/ffi-headers-sdl2-ttf-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-ttf-headers/workflows/build/badge.svg)](https://github.com/php-ffi-headers/sdl2-ttf-headers/actions) [![](https://camo.githubusercontent.com/6b4bcb88bda4191637c847da70dafa0efc635a9c492d17e9f71ab92d76f46516/68747470733a2f2f696d672e736869656c64732e696f2f62616467652f5048502d382e312e302d6666303134302e737667)](https://packagist.org/packages/ffi-headers/sdl2-ttf-headers) [![](https://camo.githubusercontent.com/f3c7c0c7120ea893e703717592cbcd810c98e6bfc85705fcb67089644ce4152c/68747470733a2f2f696d672e736869656c64732e696f2f62616467652f53444c322532305454462d322e32302e312d6363336332302e737667)](https://packagist.org/packages/ffi-headers/sdl2-ttf-headers) [![Latest Stable Version](https://camo.githubusercontent.com/ce9e6a97b416efa7723e29e87a5076a1167e721a6bd603a78925675e00b5409c/68747470733a2f2f706f7365722e707567782e6f72672f6666692d686561646572732f73646c322d7474662d686561646572732f76657273696f6e)](https://packagist.org/packages/ffi-headers/sdl2-ttf-headers) [![Latest Unstable Version](https://camo.githubusercontent.com/d3e4589b8ad832ffe6068b7b47ab8f9fc2c35ae9bad6f7d8a811a7d9e94e8d2c/68747470733a2f2f706f7365722e707567782e6f72672f6666692d686561646572732f73646c322d7474662d686561646572732f762f756e737461626c65)](https://packagist.org/packages/ffi-headers/sdl2-ttf-headers) [![Total Downloads](https://camo.githubusercontent.com/1a79e04eda0176d5d076c782110d3cf6194761825898577cdc367de1de5699df/68747470733a2f2f706f7365722e707567782e6f72672f6666692d686561646572732f73646c322d7474662d686561646572732f646f776e6c6f616473)](https://packagist.org/packages/ffi-headers/sdl2-ttf-headers) [![License MIT](https://camo.githubusercontent.com/4fc0d8cdb2b6a1a8c103311d08f3dcacab90b0286cbdec72c204f99f061ada2c/68747470733a2f2f706f7365722e707567782e6f72672f6666692d686561646572732f73646c322d7474662d686561646572732f6c6963656e7365)](https://raw.githubusercontent.com/php-ffi-headers/sdl2-ttf-headers/master/LICENSE.md)

SDL2 TTF Headers
================

[](#sdl2-ttf-headers)

This is a C headers of the [SDL2 TTF](https://github.com/libsdl-org/SDL_ttf) 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-ttf-headers
```

Usage
-----

[](#usage)

```
use FFI\Headers\SDL2TTF;

$headers = SDL2TTF::create(
    SDL2TTF\Version::V2_0_18,
);

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

1357d 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 (14 commits)")

---

Tags

ffiheadersphppluginunixheadersextensionlinuxwindowsfontffittfmacosopenglcsdlVulkanopengl-essdl2

###  Code Quality

Static AnalysisPsalm

Type Coverage Yes

### Embed Badge

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

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

###  Alternatives

[serafim/ffi-sdl

SDL FFI bindings for the PHP language

314.6k3](/packages/serafim-ffi-sdl)[kartik-v/yii2-icons

Set of icon frameworks for use in Yii Framework 2.0

73970.3k34](/packages/kartik-v-yii2-icons)[kartik-v/yii2-widget-colorinput

An enhanced Yii 2 widget encapsulating the HTML 5 color input (sub repo split from yii2-widgets)

324.8M10](/packages/kartik-v-yii2-widget-colorinput)[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)[daixianceng/yii2-smser

Yii2 SMS extension

862.9k1](/packages/daixianceng-yii2-smser)

PHPackages © 2026

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