Download the PHP package serafim/ffi-sdl-image without Composer
On this page you can find all versions of the php package serafim/ffi-sdl-image. It is possible to download/install these versions without Composer. Possible dependencies are resolved automatically.
Informations about the package ffi-sdl-image
FFI SDL Image Bindings
A SDL_image 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 Image >= 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-image-2.0-0 -y
- MacOS:
brew install sdl2_image
- 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\Image\Image
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-image with dependencies
ext-ffi 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