Skip to content

Latest commit

 

History

History
26 lines (19 loc) · 491 Bytes

README.md

File metadata and controls

26 lines (19 loc) · 491 Bytes

SDL_image PHP Extension

SDL_image for PHP allows to load images (PNG, JPG, BMP, TGA, TIF, etc.) and create SDL_Texture or SDL_Surface. It requires SDL PHP Extension.

Building

$ phpize
$ ./configure --enable-sdl_image
$ make
$ make install

Run tests with installed PHP (avoids skipped tests):

$ php run-tests.php --show-diff -q

Requirements

Require PHP 8+ and SDL PHP extension

$ pecl install sdl-devel