-
Install on MacOS
-
Install on Windows
Installing PHP-GLFW on Linux¶
We currently do not provide an installer script for Linux like we do for MacOS. However, the "manual" installation process should be straightforward for Linux users.
Manual installation¶
Ensure that you have installed the required php-dev, git, and cmake packages.
Clone the repository:
Configure and build the extension:
Ensure that you add glfw.so to your php.ini file.
You can determine the path to your php.ini file using the following command:
Edit that file using your favorite editor:
Then, add the following line at the end of the file: