PHP code example of ffi-headers / glfw3-headers

1. Go to this page and download the library: Download ffi-headers/glfw3-headers library. Choose the download type require.

2. Extract the ZIP file and open the index.php.

3. Add this code to the index.php.
    
        
<?php
require_once('vendor/autoload.php');

/* Start to develop here. Best regards https://php-download.com/ */

    

ffi-headers / glfw3-headers example snippets


use FFI\Headers\GLFW3;

$headers = GLFW3::create(
    GLFW3\Platform::X11,  // Window API
    GLFW3\Context::GLX, // Context API
    GLFW3\Version::V3_3_6,      // GLFW Headers Version
);

echo $headers;