All Projects → Ponup → Php Sdl

Ponup / Php Sdl

Licence: other
SDL2 bindings for the PHP language

Programming Languages

c
50402 projects - #5 most used programming language

Labels

Projects that are alternatives of or similar to Php Sdl

Lambdahack
Haskell game engine library for roguelike dungeon crawlers; please offer feedback, e.g., after trying out the sample game with the web frontend at
Stars: ✭ 439 (+683.93%)
Mutual labels:  sdl
Nya
[WIP] Game Engine written in Crystal
Stars: ✭ 16 (-71.43%)
Mutual labels:  sdl
Milton
An infinite-canvas paint program
Stars: ✭ 960 (+1614.29%)
Mutual labels:  sdl
Zep
Zep - An embeddable editor, with optional support for using vim keystrokes.
Stars: ✭ 477 (+751.79%)
Mutual labels:  sdl
Falltergeist
Opensource crossplatform Fallout 2™ game engine writen in C++ and SDL.
Stars: ✭ 668 (+1092.86%)
Mutual labels:  sdl
Blipkit
C library for creating the beautiful sound of old sound chips
Stars: ✭ 23 (-58.93%)
Mutual labels:  sdl
Fiber2d
Cross-platform 2D Game Engine in pure Swift
Stars: ✭ 415 (+641.07%)
Mutual labels:  sdl
Sdl kitchensink
A Simple SDL2 / FFmpeg library for audio/video playback written in C99
Stars: ✭ 53 (-5.36%)
Mutual labels:  sdl
Tartiflette
GraphQL Engine built with Python 3.6+ / asyncio
Stars: ✭ 719 (+1183.93%)
Mutual labels:  sdl
Seecode Audit
Distributed white box code scanning tool
Stars: ✭ 30 (-46.43%)
Mutual labels:  sdl
Guislice
GUIslice drag & drop embedded GUI in C for touchscreen TFT on Arduino, Raspberry Pi, ARM, ESP8266 / ESP32 / M5stack using Adafruit-GFX / TFT_eSPI / UTFT / SDL
Stars: ✭ 534 (+853.57%)
Mutual labels:  sdl
Dlangui
Cross Platform GUI for D programming language
Stars: ✭ 642 (+1046.43%)
Mutual labels:  sdl
Zig Sdl
self-contained SDL2 package for Zig
Stars: ✭ 26 (-53.57%)
Mutual labels:  sdl
Wasmwinforms
C# Winforms for Webassembly
Stars: ✭ 444 (+692.86%)
Mutual labels:  sdl
Bogue
GUI library for ocaml based on SDL2
Stars: ✭ 48 (-14.29%)
Mutual labels:  sdl
Taisei
A free and open-source Touhou Project fangame
Stars: ✭ 428 (+664.29%)
Mutual labels:  sdl
Fortran Sdl2
Fortran 2008 interface bindings to SDL 2.0
Stars: ✭ 18 (-67.86%)
Mutual labels:  sdl
Format Graphql
Formats GraphQL schema definition language (SDL) document.
Stars: ✭ 55 (-1.79%)
Mutual labels:  sdl
Chocolate Doom
Chocolate Doom is a Doom source port that is minimalist and historically accurate.
Stars: ✭ 1,052 (+1778.57%)
Mutual labels:  sdl
Frag.exe
Multiplayer First-Person Shooter written in C++ using my own engine, Qor
Stars: ✭ 8 (-85.71%)
Mutual labels:  sdl

Build Status

PHP-SDL

SDL (Simple DirectMedia Layer) bindings for the PHP language. The extension allows you to create multimedia desktop applications with windows, input handling, events, and more.

Installation

Requirements

  • C compiler
  • Automake tools
  • PHP devel
  • libSDL2 devel libraries and headers
  • UN*X OS (eg Linux, Macos)

Via PECL

pecl install sdl-devel

Then add

extension=sdl.so

to your php.ini file.

Documentation

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.

Examples

Standard SDL2 API is available in procedural style:

    $window = SDL_CreateWindow( "Foo window", 500, 50, 350, 300, SDL_WINDOW_SHOWN+SDL_WINDOW_RESIZABLE);
    SDL_SetWindowTitle($window, "Some new title");
    SDL_DestroyWindow($window);

And is also available in object oriented style:

    $window = new SDL_Window( "Foo window", 100, 50, 350, 300, SDL_Window::SHOWN|SDL_Window::RESIZABLE);
    $window->SetTitle("Some new title");
    unset($window); // will destroy the window

Complete examples can be found in the examples folder.

Projects using the extension

Building

To compile your new extension, you will have to execute the following steps:

$ phpize
$ ./configure [--enable--sdl] 
$ make
$ make test
$ [sudo] make install

Support and feature requests

Please submit anything that needs our attention to the issues section on Github. We are commited to attend any request in a short timespan if it's a sensible matter.

Note that the project description data, including the texts, logos, images, and/or trademarks, for each open source project belongs to its rightful owner. If you wish to add or remove any projects, please contact us at [email protected].