Download the PHP package serafim/ffi-sdl-ttf without Composer
On this page you can find all versions of the php package serafim/ffi-sdl-ttf. It is possible to download/install these versions without Composer. Possible dependencies are resolved automatically.
Informations about the package ffi-sdl-ttf
FFI SDL TTF Bindings
A SDL_ttf extension FFI bindings for the PHP language compatible with SDL FFI bindings for the PHP language.
- System Requirements
- Installation
- Documentation
- Initialization
- Example
Requirements
- PHP ^8.1
- ext-ffi
- Windows, Linux, BSD or MacOS
- Android, iOS or something else are not supported yet
- SDL and SDL TTF >= 2.0
Installation
Library is available as composer repository and can be installed using the following command in a root of your project.
Additional dependencies:
- Debian-based Linux:
sudo apt install libsdl2-ttf-2.0-0 -y
- MacOS:
brew install sdl2_ttf
- Window: Can be downloaded from here
Documentation
The library API completely supports and repeats the analogue in the C language.
Initialization
In the case that you need a specific SDL instance, it should be passed explicitly:
! It is recommended to always specify the SDL dependency explicitly.
To specify a library pathname explicitly, you can add the library
argument to
the Serafim\SDL\TTF\TTF
constructor.
By default, the library will try to resolve the binary's pathname automatically.
You can also specify the library version explicitly. Depending on this version, the corresponding functions of the SDL Image will be available.
By default, the library will try to resolve SDL Image version automatically.
To speed up the header compiler, you can use any PSR-16 compatible cache driver.
In addition, you can control other preprocessor directives explicitly:
Example
All versions of ffi-sdl-ttf with dependencies
ext-ffi Version *
ext-mbstring Version *
ffi-headers/contracts Version ^1.0
ffi/env Version ^1.0
ffi/location Version ^1.0
ffi/preprocessor Version ^0.2
ffi/proxy Version ^1.0
ffi/work-directory Version ^1.0
psr/simple-cache Version ^1.0|^2.0|^3.0
serafim/ffi-sdl Version ^2.0