php-glfw brings the GLFW library to the PHP language, enabling native GUI and OpenGL windowing capabilities directly from PHP scripts. This experimental extension allows developers to create real-time graphical applications, games, and simulations in PHP—traditionally a backend web language—by binding low-level graphics and windowing APIs. It opens creative possibilities for developers more comfortable in PHP or looking to prototype desktop applications with web-style syntax. It’s ideal for educational purposes, quick prototyping, or just for fun.

Features

  • Native PHP bindings for GLFW functionality
  • Create OpenGL windows and render in real time
  • Access to input devices like mouse, keyboard, and joystick
  • Supports multi-window rendering and OpenGL contexts
  • Event handling and rendering loop control in PHP
  • Compatible with modern versions of PHP via extension
  • Enable cross-platform GUI development in a web-focused language
  • Easy to install with Docker-based setup options
  • Useful for game prototyping and graphics experimentation in PHP

Project Samples

Project Activity

See All Activity >