ffi-headers/sdl2-image-headers

PHP FFI SDL2 Image Headers

1.0.1 2022-08-22 16:20 UTC

This package is auto-updated.

Last update: 2024-11-22 21:27:26 UTC


README

Latest Stable Version Latest Unstable Version Total Downloads License MIT

SDL2 Image Headers

This is a C headers of the SDL2 Image adopted for PHP.

Requirements

  • PHP >= 8.1

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

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 > during initialization).
  • May not be compatible with the PHP headers library.