- C compiler
- Automake tools
- PHP devel
- libSDL v1.2.* devel libraries and headers
pecl install sdl-beta
Download the source code and within the main directory run these commands:
phpize
./configure --with-sdl (or --with-sdl=) make make test sudo make install
Then add
extension=sdl.so
to your php.ini file.
We are working on the Windows build. Stay tuned.
The SDL extension mimics in almost every single aspect to the official C library, so until we write our own documentation, refer to the C counterpart.
Please submit anything that needs our attention to issues section on Github. We are commited to attend any request in a short timespan if it's a sensible matter.